Stairs: Add snowblock and ice stairs and slabs
authorTim <tim@tree-of-life.co.uk>
Mon, 27 Mar 2017 20:55:53 +0000 (21:55 +0100)
committerparamat <mat.gregory@virginmedia.com>
Mon, 1 May 2017 18:48:54 +0000 (19:48 +0100)
mods/stairs/init.lua

index 835b219345ff841f42c46f0b741ca2f5eed28f73..a88ea014c40f87628f7b8877b9b4281f74ead789 100644 (file)
@@ -587,3 +587,27 @@ stairs.register_stair_and_slab(
        "Gold Block Slab",
        default.node_sound_metal_defaults()
 )
+
+stairs.register_stair_and_slab(
+       "ice",
+       "default:ice",
+       {cracky = 3, puts_out_fire = 1, cools_lava = 1},
+       {"default_ice.png"},
+       "Ice Stair",
+       "Ice Slab",
+       default.node_sound_glass_defaults()
+)
+
+stairs.register_stair_and_slab(
+       "snowblock",
+       "default:snowblock",
+       {crumbly = 3, puts_out_fire = 1, cools_lava = 1, snowy = 1},
+       {"default_snow.png"},
+       "Snow Block Stair",
+       "Snow Block Slab",
+       default.node_sound_dirt_defaults({
+               footstep = {name = "default_snow_footstep", gain = 0.15},
+               dug = {name = "default_snow_footstep", gain = 0.2},
+               dig = {name = "default_snow_footstep", gain = 0.2}
+       }),
+)