Skip to content

Commit

Permalink
Icesheet biome: Add 'default:cave_ice' node to enable caves in land ice
Browse files Browse the repository at this point in the history
Has 'is_ground_content = true'.
Drops 'default:ice'.
  • Loading branch information
paramat committed Mar 11, 2018
1 parent d4a007c commit ac50b3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/mapgen.lua
Expand Up @@ -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 = "",
Expand Down
12 changes: 12 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -65,6 +65,7 @@ default:snow
default:snowblock
default:ice
default:cave_ice
Trees
-----
Expand Down Expand Up @@ -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"},
Expand All @@ -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
--
Expand Down

0 comments on commit ac50b3e

Please sign in to comment.