From 18d2f190e8116caa0b00d10192138ec3b00cb12f Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Fri, 15 Jul 2022 19:13:15 -0600 Subject: [PATCH] make various primordial vegetation floodable. It grows back anyway. --- df_primordial_items/fungal_nodes.lua | 5 +++++ df_primordial_items/jungle_nodes.lua | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/df_primordial_items/fungal_nodes.lua b/df_primordial_items/fungal_nodes.lua index 88ead4b..d377c03 100644 --- a/df_primordial_items/fungal_nodes.lua +++ b/df_primordial_items/fungal_nodes.lua @@ -18,6 +18,7 @@ minetest.register_node("df_primordial_items:fungal_grass_1", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", sunlight_propagates = true, @@ -36,6 +37,7 @@ minetest.register_node("df_primordial_items:fungal_grass_2", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, place_param2 = 3, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", @@ -57,6 +59,7 @@ minetest.register_node("df_primordial_items:glow_orb", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, light_source = 9, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", @@ -76,6 +79,7 @@ minetest.register_node("df_primordial_items:glow_orb_stalks", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, light_source = 6, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", @@ -108,6 +112,7 @@ minetest.register_node("df_primordial_items:glow_pods", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, light_source = 6, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", diff --git a/df_primordial_items/jungle_nodes.lua b/df_primordial_items/jungle_nodes.lua index 33ba178..0db9449 100644 --- a/df_primordial_items/jungle_nodes.lua +++ b/df_primordial_items/jungle_nodes.lua @@ -18,6 +18,7 @@ minetest.register_node("df_primordial_items:fern_1", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", sunlight_propagates = true, @@ -38,6 +39,7 @@ minetest.register_node("df_primordial_items:fern_2", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", sunlight_propagates = true, @@ -60,6 +62,7 @@ minetest.register_node("df_primordial_items:glow_plant_1", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, light_source = 6, drop = { max_items = 2, @@ -93,6 +96,7 @@ minetest.register_node("df_primordial_items:glow_plant_2", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, drop = "df_primordial_items:glowtato", light_source = 6, sounds = df_primordial_items.sounds.leaves, @@ -115,6 +119,7 @@ minetest.register_node("df_primordial_items:glow_plant_3", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, light_source = 6, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", @@ -139,6 +144,7 @@ minetest.register_node("df_primordial_items:jungle_grass_1", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", sunlight_propagates = true, @@ -158,6 +164,7 @@ minetest.register_node("df_primordial_items:jungle_grass_2", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, place_param2 = 3, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", @@ -178,6 +185,7 @@ minetest.register_node("df_primordial_items:jungle_grass_3", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, place_param2 = 3, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", @@ -228,6 +236,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_1", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", sunlight_propagates = true, @@ -246,6 +255,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_2", { buildable_to = true, is_ground_content = false, walkable = false, + floodable = true, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = "clip", sunlight_propagates = true, @@ -403,6 +413,7 @@ minetest.register_node("df_primordial_items:jungle_thorns", { paramtype = "light", drawtype = "plantlike", walkable = false, + floodable = true, is_ground_content = false, place_param2 = 3, sounds = df_primordial_items.sounds.leaves,