summaryrefslogtreecommitdiff
path: root/stairs.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-06-09 15:08:34 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-06-09 15:08:34 +0100
commit0b43f0428559cd477da796d7f27648814cc8cfe8 (patch)
tree633c6bd0beeb5c8caef32fdd96d19bb87d75438f /stairs.lua
parent306c025713487b20a20e32e33277d2f215a70832 (diff)
Added intllib support
Diffstat (limited to 'stairs.lua')
-rw-r--r--stairs.lua138
1 files changed, 70 insertions, 68 deletions
diff --git a/stairs.lua b/stairs.lua
index aa4236a..5cf51ff 100644
--- a/stairs.lua
+++ b/stairs.lua
@@ -1,26 +1,28 @@
+local S = ethereal.intllib
+
-- Stairs Redo
if stairs and stairs.mod and stairs.mod == "redo" then
stairs.register_all("crystal_block", "ethereal:crystal_block",
{cracky = 1, level = 2},
{"crystal_block.png"},
- "Crystal Block Stair",
- "Crystal Block Slab",
+ S("Crystal Block Stair"),
+ S("Crystal Block Slab"),
default.node_sound_glass_defaults())
stairs.register_all("icebrick", "ethereal:icebrick",
{crumbly = 3, melts = 1},
{"brick_ice.png"},
- "Ice Brick Stair",
- "Ice Brick Slab",
+ S("Ice Brick Stair"),
+ S("Ice Brick Slab"),
default.node_sound_glass_defaults())
stairs.register_all("snowbrick", "ethereal:snowbrick",
{crumbly = 3, melts = 1},
{"brick_snow.png"},
- "Snow Brick Stair",
- "Snow Brick Slab",
+ S("Snow Brick Stair"),
+ S("Snow Brick Slab"),
default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
@@ -29,99 +31,99 @@ stairs.register_all("snowbrick", "ethereal:snowbrick",
stairs.register_all("dry_dirt", "ethereal:dry_dirt",
{crumbly = 3},
{"ethereal_dry_dirt.png"},
- "Dry Dirt Stair",
- "Dry Dirt Slab",
+ S("Dry Dirt Stair"),
+ S("Dry Dirt Slab"),
default.node_sound_dirt_defaults())
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",
+ S("Mushroom Trunk Stair"),
+ S("Mushroom Trunk Slab"),
default.node_sound_wood_defaults())
stairs.register_all("mushroom", "ethereal:mushroom",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
{"mushroom_block.png"},
- "Mushroom Top Stair",
- "Mushroom Top Slab",
+ S("Mushroom Top Stair"),
+ S("Mushroom Top Slab"),
default.node_sound_wood_defaults())
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",
+ S("Frost Wood Stair"),
+ S("Frost Wood Slab"),
default.node_sound_wood_defaults())
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",
+ S("Healing Wood Stair"),
+ S("Healing Wood Slab"),
default.node_sound_wood_defaults())
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",
+ S("Palm Wood Stair"),
+ S("Palm Wood Slab"),
default.node_sound_wood_defaults())
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",
+ S("Birch Wood Stair"),
+ S("Birch Wood Slab"),
default.node_sound_wood_defaults())
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",
+ S("Banana Wood Stair"),
+ S("Banana Wood Slab"),
default.node_sound_wood_defaults())
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",
+ S("Willow Wood Stair"),
+ S("Willow Wood Slab"),
default.node_sound_wood_defaults())
stairs.register_all("redwood_wood", "ethereal:redwood_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"redwood_wood.png"},
- "Redwood stair",
- "Redwood Slab",
+ S("Redwood stair"),
+ S("Redwood Slab"),
default.node_sound_wood_defaults())
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",
+ S("Bamboo stair"),
+ S("Bamboo Slab"),
default.node_sound_wood_defaults())
-- Stairs Plus (in More Blocks)
elseif minetest.global_exists("stairsplus") then
stairsplus:register_all("ethereal", "crystal_block", "ethereal:crystal_block", {
- description = "Crystal block",
+ description = S("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",
+ description = S("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",
+ description = S("Snow Brick"),
tiles = {"brick_snow.png"},
groups = {crumbly = 3, melts = 1},
sounds = default.node_sound_dirt_defaults({
@@ -131,77 +133,77 @@ stairsplus:register_all("ethereal", "snowbrick", "ethereal:snowbrick", {
})
stairsplus:register_all("ethereal", "dry_dirt", "ethereal:dry_dirt", {
- description = "Dry Dirt",
+ description = S("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",
+ description = S("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",
+ description = S("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",
+ description = S("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",
+ description = S("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",
+ description = S("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",
+ description = S("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",
+ description = S("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",
+ description = S("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",
+ description = S("Redwood"),
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_floor", {
- description = "Bamboo",
+ 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(),
@@ -213,22 +215,22 @@ else
stairs.register_stair_and_slab("crystal_block", "ethereal:crystal_block",
{cracky = 1, level = 2},
{"crystal_block.png"},
- "Crystal Block Stair",
- "Crystal Block Slab",
+ S("Crystal Block Stair"),
+ S("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",
+ S("Ice Brick Stair"),
+ S("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",
+ S("Snow Brick Stair"),
+ S("Snow Brick Slab"),
default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
@@ -237,43 +239,43 @@ stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick",
stairs.register_stair_and_slab("dry_dirt", "ethereal:dry_dirt",
{crumbly = 3},
{"ethereal_dry_dirt.png"},
- "Dry Dirt Stair",
- "Dry Dirt Slab",
+ S("Dry Dirt Stair"),
+ S("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",
+ 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"},
- "Mushroom Top Stair",
- "Mushroom Top Slab",
+ 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"},
- "Frost Wood Stair",
- "Frost Wood Slab",
+ 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"},
- "Healing Wood Stair",
- "Healing Wood Slab",
+ 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"},
- "Palm Wood Stair",
- "Palm Wood Slab",
+ S("Palm Wood Stair"),
+ S("Palm Wood Slab"),
default.node_sound_wood_defaults())
stairs.register_stair_and_slab("birch_wood", "ethereal:birch_wood",
@@ -286,29 +288,29 @@ stairs.register_stair_and_slab("birch_wood", "ethereal:birch_wood",
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",
+ 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"},
- "Willow Wood Stair",
- "Willow Wood Slab",
+ 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"},
- "Redwood stair",
- "Redwood Slab",
+ S("Redwood stair"),
+ S("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",
+ S("Bamboo stair"),
+ S("Bamboo Slab"),
default.node_sound_wood_defaults())
end