ethereal/stairs.lua

323 lines
11 KiB
Lua
Raw Normal View History

2016-03-23 14:23:05 +03:00
2016-06-09 17:08:34 +03:00
local S = ethereal.intllib
-- Stairs Redo
if stairs and stairs.mod and stairs.mod == "redo" then
2016-03-23 14:23:05 +03:00
stairs.register_all("crystal_block", "ethereal:crystal_block",
{cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1},
2014-11-09 22:17:41 +03:00
{"crystal_block.png"},
2020-05-28 18:24:18 +03:00
S("Crystal Block"),
2014-11-09 22:17:41 +03:00
default.node_sound_glass_defaults())
stairs.register_all("icebrick", "ethereal:icebrick",
{cracky = 3, puts_out_fire = 1, cools_lava = 1},
2014-11-09 22:17:41 +03:00
{"brick_ice.png"},
2020-05-28 18:24:18 +03:00
S("Ice Brick"),
2014-11-09 22:17:41 +03:00
default.node_sound_glass_defaults())
stairs.register_all("snowbrick", "ethereal:snowbrick",
{crumbly = 3, puts_out_fire = 1, cools_lava = 1},
2014-11-09 22:17:41 +03:00
{"brick_snow.png"},
2020-05-28 18:24:18 +03:00
S("Snow Brick"),
2014-11-09 22:17:41 +03:00
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_all("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"},
2020-05-28 18:24:18 +03:00
S("Dried Dirt"),
2014-11-09 22:17:41 +03:00
default.node_sound_dirt_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Mushroom Trunk"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Mushroom Top"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Frost Wood"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Healing Wood"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Palm Wood"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Birch Wood"),
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Banana Wood"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Willow Wood"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
stairs.register_all("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"},
2020-05-28 18:24:18 +03:00
S("Redwood"),
2014-11-09 22:17:41 +03:00
default.node_sound_wood_defaults())
2016-03-23 14:23:05 +03:00
stairs.register_all("bamboo_wood", "ethereal:bamboo_block",
{snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"bamboo_floor.png"},
2020-05-28 18:24:18 +03:00
S("Bamboo"),
default.node_sound_wood_defaults())
2016-03-23 14:23:05 +03:00
stairs.register_all("sakura_wood", "ethereal:sakura_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"ethereal_sakura_wood.png"},
2020-05-28 18:24:18 +03:00
S("Sakura Wood"),
default.node_sound_wood_defaults())
-- Stairs Plus (in More Blocks)
elseif minetest.global_exists("stairsplus") then
2016-03-23 14:23:05 +03:00
stairsplus:register_all("ethereal", "crystal_block", "ethereal:crystal_block", {
2016-06-09 17:08:34 +03:00
description = S("Crystal block"),
2016-03-23 14:23:05 +03:00
tiles = {"crystal_block.png"},
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1, cools_lava = 1},
2016-03-23 14:23:05 +03:00
sounds = default.node_sound_glass_defaults(),
})
stairsplus:register_all("ethereal", "icebrick", "ethereal:icebrick", {
2016-06-09 17:08:34 +03:00
description = S("Ice Brick"),
2016-03-23 14:23:05 +03:00
tiles = {"brick_ice.png"},
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
2016-03-23 14:23:05 +03:00
sounds = default.node_sound_glass_defaults(),
})
stairsplus:register_all("ethereal", "snowbrick", "ethereal:snowbrick", {
2016-06-09 17:08:34 +03:00
description = S("Snow Brick"),
2016-03-23 14:23:05 +03:00
tiles = {"brick_snow.png"},
groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1},
2016-03-23 14:23:05 +03:00
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", {
2016-12-13 23:04:58 +03:00
description = S("Dried Dirt"),
2016-03-23 14:23:05 +03:00
tiles = {"ethereal_dry_dirt.png"},
groups = {crumbly = 3},
sounds = default.node_sound_dirt_defaults(),
})
stairsplus:register_all("ethereal", "mushroom_trunk", "ethereal:mushroom_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Mushroom Trunk"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Mushroom Top"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Frost Wood"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Healing Wood"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Palm Wood"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Birch Wood"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Banana Wood"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Willow Wood"),
2016-03-23 14:23:05 +03:00
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", {
2016-06-09 17:08:34 +03:00
description = S("Redwood"),
2016-03-23 14:23:05 +03:00
tiles = {"redwood_wood.png"},
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "bamboo_wood", "ethereal:bamboo_block", {
2016-06-09 17:08:34 +03:00
description = S("Bamboo"),
tiles = {"bamboo_floor.png"},
groups = {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
stairsplus:register_all("ethereal", "sakura_wood", "ethereal:sakura_wood", {
description = S("Sakura"),
tiles = {"ethereal_sakura_wood.png"},
groups = {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, puts_out_fire = 1, cools_lava = 1},
{"crystal_block.png"},
2016-06-09 17:08:34 +03:00
S("Crystal Block Stair"),
S("Crystal Block Slab"),
default.node_sound_glass_defaults())
stairs.register_stair_and_slab("icebrick", "ethereal:icebrick",
{cracky = 3, puts_out_fire = 1, cools_lava = 1},
{"brick_ice.png"},
2016-06-09 17:08:34 +03:00
S("Ice Brick Stair"),
S("Ice Brick Slab"),
default.node_sound_glass_defaults())
stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick",
{crumbly = 3, puts_out_fire = 1, cools_lava = 1},
{"brick_snow.png"},
2016-06-09 17:08:34 +03:00
S("Snow Brick Stair"),
S("Snow Brick 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}
}))
stairs.register_stair_and_slab("dry_dirt", "ethereal:dry_dirt",
{crumbly = 3},
{"ethereal_dry_dirt.png"},
2016-12-13 23:04:58 +03:00
S("Dried Dirt Stair"),
S("Dried 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"},
2016-06-09 17:08:34 +03:00
S("Mushroom Trunk Stair"),
S("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"},
2016-06-09 17:08:34 +03:00
S("Mushroom Top Stair"),
S("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"},
2016-06-09 17:08:34 +03:00
S("Frost Wood Stair"),
S("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"},
2016-06-09 17:08:34 +03:00
S("Healing Wood Stair"),
S("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"},
2016-06-09 17:08:34 +03:00
S("Palm Wood Stair"),
S("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"},
2016-06-09 17:08:34 +03:00
S("Banana Wood Stair"),
S("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"},
2016-06-09 17:08:34 +03:00
S("Willow Wood Stair"),
S("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"},
2016-06-09 17:08:34 +03:00
S("Redwood stair"),
S("Redwood Slab"),
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("bamboo_wood", "ethereal:bamboo_block",
{snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"bamboo_floor.png"},
2016-06-09 17:08:34 +03:00
S("Bamboo stair"),
S("Bamboo Slab"),
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("sakura_wood", "ethereal:sakura_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"ethereal_sakura_wood.png"},
S("Sakura Wood Stair"),
S("Sakura Wood Slab"),
default.node_sound_wood_defaults())
end