diff options
Diffstat (limited to 'stairs.lua')
-rw-r--r-- | stairs.lua | 156 |
1 files changed, 135 insertions, 21 deletions
@@ -1,25 +1,22 @@ --- Is More Blocks mod installed? +-- Stairs Redo +if stairs and stairs.mod and stairs.mod == "redo" then -if not minetest.global_exists("stairsplus") then - --- If NOT then register standard stairs - -stairs.register_stair_and_slab("crystal_block", "ethereal:crystal_block", +stairs.register_all("crystal_block", "ethereal:crystal_block", {cracky = 1, level = 2}, {"crystal_block.png"}, "Crystal Block Stair", "Crystal Block Slab", default.node_sound_glass_defaults()) -stairs.register_stair_and_slab("icebrick", "ethereal:icebrick", +stairs.register_all("icebrick", "ethereal:icebrick", {crumbly = 3, melts = 1}, {"brick_ice.png"}, "Ice Brick Stair", "Ice Brick Slab", default.node_sound_glass_defaults()) -stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick", +stairs.register_all("snowbrick", "ethereal:snowbrick", {crumbly = 3, melts = 1}, {"brick_snow.png"}, "Snow Brick Stair", @@ -29,79 +26,85 @@ stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick", dug = {name = "default_snow_footstep", gain = 0.75}, })) -stairs.register_stair_and_slab("dry_dirt", "ethereal:dry_dirt", +stairs.register_all("dry_dirt", "ethereal:dry_dirt", {crumbly = 3}, {"ethereal_dry_dirt.png"}, "Dry Dirt Stair", "Dry Dirt Slab", default.node_sound_dirt_defaults()) -stairs.register_stair_and_slab("mushroom_trunk", "ethereal:mushroom_trunk", +stairs.register_all("mushroom_trunk", "ethereal:mushroom_trunk", {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2}, {"mushroom_trunk.png"}, "Mushroom Trunk Stair", "Mushroom Trunk Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("mushroom", "ethereal:mushroom", +stairs.register_all("mushroom", "ethereal:mushroom", {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2}, {"mushroom_block.png"}, "Mushroom Top Stair", "Mushroom Top Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("frost_wood", "ethereal:frost_wood", +stairs.register_all("frost_wood", "ethereal:frost_wood", {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1}, {"frost_wood.png"}, "Frost Wood Stair", "Frost Wood Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("yellow_wood", "ethereal:yellow_wood", +stairs.register_all("yellow_wood", "ethereal:yellow_wood", {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1}, {"yellow_wood.png"}, "Healing Wood Stair", "Healing Wood Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("palm_wood", "ethereal:palm_wood", +stairs.register_all("palm_wood", "ethereal:palm_wood", {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {"moretrees_palm_wood.png"}, "Palm Wood Stair", "Palm Wood Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("birch_wood", "ethereal:birch_wood", +stairs.register_all("birch_wood", "ethereal:birch_wood", {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {"moretrees_birch_wood.png"}, "Birch Wood Stair", "Birch Wood Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("banana_wood", "ethereal:banana_wood", +stairs.register_all("banana_wood", "ethereal:banana_wood", {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {"banana_wood.png"}, "Banana Wood Stair", "Banana Wood Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("willow_wood", "ethereal:willow_wood", +stairs.register_all("willow_wood", "ethereal:willow_wood", {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {"willow_wood.png"}, "Willow Wood Stair", "Willow Wood Slab", default.node_sound_wood_defaults()) -stairs.register_stair_and_slab("redwood_wood", "ethereal:redwood_wood", +stairs.register_all("redwood_wood", "ethereal:redwood_wood", {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, {"redwood_wood.png"}, "Redwood stair", "Redwood Slab", default.node_sound_wood_defaults()) -else +stairs.register_all("bamboo_wood", "ethereal:bamboo_floor", + {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + {"bamboo_floor.png"}, + "Bamboo stair", + "Bamboo Slab", + default.node_sound_wood_defaults()) --- if SO then register stairs plus stairs +-- Stairs Plus (in More Blocks) +elseif minetest.global_exists("stairsplus") then stairsplus:register_all("ethereal", "crystal_block", "ethereal:crystal_block", { description = "Crystal block", @@ -197,4 +200,115 @@ stairsplus:register_all("ethereal", "redwood_wood", "ethereal:redwood_wood", { sounds = default.node_sound_wood_defaults(), }) -end -- END IF +stairsplus:register_all("ethereal", "bamboo_wood", "ethereal:bamboo_floor", { + description = "Bamboo", + tiles = {"bamboo_floor.png"}, + groups = {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + sounds = default.node_sound_wood_defaults(), +}) + +-- Default Stairs +else + +stairs.register_stair_and_slab("crystal_block", "ethereal:crystal_block", + {cracky = 1, level = 2}, + {"crystal_block.png"}, + "Crystal Block Stair", + "Crystal Block Slab", + default.node_sound_glass_defaults()) + +stairs.register_stair_and_slab("icebrick", "ethereal:icebrick", + {crumbly = 3, melts = 1}, + {"brick_ice.png"}, + "Ice Brick Stair", + "Ice Brick Slab", + default.node_sound_glass_defaults()) + +stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick", + {crumbly = 3, melts = 1}, + {"brick_snow.png"}, + "Snow Brick Stair", + "Snow Brick Slab", + default.node_sound_dirt_defaults({ + footstep = {name = "default_snow_footstep", gain = 0.25}, + dug = {name = "default_snow_footstep", gain = 0.75}, + })) + +stairs.register_stair_and_slab("dry_dirt", "ethereal:dry_dirt", + {crumbly = 3}, + {"ethereal_dry_dirt.png"}, + "Dry Dirt Stair", + "Dry Dirt Slab", + default.node_sound_dirt_defaults()) + +stairs.register_stair_and_slab("mushroom_trunk", "ethereal:mushroom_trunk", + {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2}, + {"mushroom_trunk.png"}, + "Mushroom Trunk Stair", + "Mushroom Trunk Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("mushroom", "ethereal:mushroom", + {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2}, + {"mushroom_block.png"}, + "Mushroom Top Stair", + "Mushroom Top Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("frost_wood", "ethereal:frost_wood", + {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1}, + {"frost_wood.png"}, + "Frost Wood Stair", + "Frost Wood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("yellow_wood", "ethereal:yellow_wood", + {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1}, + {"yellow_wood.png"}, + "Healing Wood Stair", + "Healing Wood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("palm_wood", "ethereal:palm_wood", + {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + {"moretrees_palm_wood.png"}, + "Palm Wood Stair", + "Palm Wood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("birch_wood", "ethereal:birch_wood", + {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + {"moretrees_birch_wood.png"}, + "Birch Wood Stair", + "Birch Wood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("banana_wood", "ethereal:banana_wood", + {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + {"banana_wood.png"}, + "Banana Wood Stair", + "Banana Wood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("willow_wood", "ethereal:willow_wood", + {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + {"willow_wood.png"}, + "Willow Wood Stair", + "Willow Wood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("redwood_wood", "ethereal:redwood_wood", + {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + {"redwood_wood.png"}, + "Redwood stair", + "Redwood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("bamboo_wood", "ethereal:bamboo_floor", + {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3}, + {"bamboo_floor.png"}, + "Bamboo stair", + "Bamboo Slab", + default.node_sound_wood_defaults()) + +end |