From ac50b3e3ce5183e1cc61ea7067d556c4afa35222 Mon Sep 17 00:00:00 2001 From: paramat Date: Mon, 26 Feb 2018 19:21:24 +0000 Subject: [PATCH] Icesheet biome: Add 'default:cave_ice' node to enable caves in land ice Has 'is_ground_content = true'. Drops 'default:ice'. --- mods/default/mapgen.lua | 2 +- mods/default/nodes.lua | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 0a1b41e6..5810bb6d 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -820,7 +820,7 @@ function default.register_biomes(upper_limit) depth_top = 1, node_filler = "default:snowblock", depth_filler = 3, - node_stone = "default:ice", + node_stone = "default:cave_ice", node_water_top = "default:ice", depth_water_top = 10, --node_water = "", diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index e037984e..0d19256d 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -65,6 +65,7 @@ default:snow default:snowblock default:ice +default:cave_ice Trees ----- @@ -574,6 +575,7 @@ minetest.register_node("default:snowblock", { end, }) +-- 'is ground content = false' to avoid tunnels in sea ice or ice rivers minetest.register_node("default:ice", { description = "Ice", tiles = {"default_ice.png"}, @@ -583,6 +585,16 @@ minetest.register_node("default:ice", { sounds = default.node_sound_glass_defaults(), }) +-- Mapgen-placed ice with 'is ground content = true' to contain tunnels +minetest.register_node("default:cave_ice", { + description = "Cave Ice", + tiles = {"default_ice.png"}, + paramtype = "light", + groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 3}, + drop = "default:ice", + sounds = default.node_sound_glass_defaults(), +}) + -- -- Trees -- -- 2.25.1