ethereal/stairs.lua

201 lines
6.4 KiB
Lua
Raw Normal View History

2016-03-23 14:23:05 +03:00
-- Is More Blocks mod installed?
if not minetest.global_exists("stairsplus") then
-- If NOT then register standard stairs
2014-11-09 22:17:41 +03:00
stairs.register_stair_and_slab("crystal_block", "ethereal:crystal_block",
2016-03-23 14:23:05 +03:00
{cracky = 1, level = 2},
2014-11-09 22:17:41 +03:00
{"crystal_block.png"},
"Crystal Block Stair",
"Crystal Block Slab",
default.node_sound_glass_defaults())
stairs.register_stair_and_slab("icebrick", "ethereal:icebrick",
2016-03-23 14:23:05 +03:00
{crumbly = 3, melts = 1},
2014-11-09 22:17:41 +03:00
{"brick_ice.png"},
"Ice Brick Stair",
"Ice Brick Slab",
default.node_sound_glass_defaults())
stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick",
2016-03-23 14:23:05 +03:00
{crumbly = 3, melts = 1},
2014-11-09 22:17:41 +03:00
{"brick_snow.png"},
"Snow Brick Stair",
"Snow Brick Slab",
default.node_sound_dirt_defaults({
2015-07-04 14:22:39 +03:00
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
2014-11-09 22:17:41 +03:00
}))
stairs.register_stair_and_slab("dry_dirt", "ethereal:dry_dirt",
2016-03-23 14:23:05 +03:00
{crumbly = 3},
2014-11-09 22:17:41 +03:00
{"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",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 22:17:41 +03:00
{"mushroom_trunk.png"},
"Mushroom Trunk Stair",
"Mushroom Trunk Slab",
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("mushroom", "ethereal:mushroom",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 22:17:41 +03:00
{"mushroom_block.png"},
"Mushroom Top Stair",
"Mushroom Top Slab",
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("frost_wood", "ethereal:frost_wood",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
2014-11-09 22:17:41 +03:00
{"frost_wood.png"},
"Frost Wood Stair",
"Frost Wood Slab",
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("yellow_wood", "ethereal:yellow_wood",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
2014-11-09 22:17:41 +03:00
{"yellow_wood.png"},
"Healing Wood Stair",
"Healing Wood Slab",
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("palm_wood", "ethereal:palm_wood",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 22:17:41 +03:00
{"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",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"moretrees_birch_wood.png"},
"Birch Wood Stair",
"Birch Wood Slab",
default.node_sound_wood_defaults())
2014-11-09 22:17:41 +03:00
stairs.register_stair_and_slab("banana_wood", "ethereal:banana_wood",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 22:17:41 +03:00
{"banana_wood.png"},
"Banana Wood Stair",
"Banana Wood Slab",
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("willow_wood", "ethereal:willow_wood",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 22:17:41 +03:00
{"willow_wood.png"},
"Willow Wood Stair",
"Willow Wood Slab",
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("redwood_wood", "ethereal:redwood_wood",
2016-03-23 14:23:05 +03:00
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 22:17:41 +03:00
{"redwood_wood.png"},
"Redwood stair",
"Redwood Slab",
default.node_sound_wood_defaults())
2016-03-23 14:23:05 +03:00
else
-- if SO then register stairs plus stairs
stairsplus:register_all("ethereal", "crystal_block", "ethereal:crystal_block", {
description = "Crystal block",
tiles = {"crystal_block.png"},
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1},
sounds = default.node_sound_glass_defaults(),
})
stairsplus:register_all("ethereal", "icebrick", "ethereal:icebrick", {
description = "Ice Brick",
tiles = {"brick_ice.png"},
groups = {crumbly = 3, melts = 1},
sounds = default.node_sound_glass_defaults(),
})
stairsplus:register_all("ethereal", "snowbrick", "ethereal:snowbrick", {
description = "Snow Brick",
tiles = {"brick_snow.png"},
groups = {crumbly = 3, melts = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
})
})
stairsplus:register_all("ethereal", "dry_dirt", "ethereal:dry_dirt", {
description = "Dry Dirt",
tiles = {"ethereal_dry_dirt.png"},
groups = {crumbly = 3},
sounds = default.node_sound_dirt_defaults(),
})
stairsplus:register_all("ethereal", "mushroom_trunk", "ethereal:mushroom_trunk", {
description = "Mushroom Trunk",
tiles = {"mushroom_trunk.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "mushroom", "ethereal:mushroom", {
description = "Mushroom Top",
tiles = {"mushroom_block.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "frost_wood", "ethereal:frost_wood", {
description = "Frost Wood",
tiles = {"frost_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "yellow_wood", "ethereal:yellow_wood", {
description = "Healing Wood",
tiles = {"yellow_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "palm_wood", "ethereal:palm_wood", {
description = "Palm Wood",
tiles = {"moretrees_palm_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "birch_wood", "ethereal:birch_wood", {
description = "Birch Wood",
tiles = {"moretrees_birch_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "banana_wood", "ethereal:banana_wood", {
description = "Banana Wood",
tiles = {"banana_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "willow_wood", "ethereal:willow_wood", {
description = "Willow Wood",
tiles = {"willow_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "redwood_wood", "ethereal:redwood_wood", {
description = "Redwood",
tiles = {"redwood_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
end -- END IF