2020-09-12 18:45:11 +02:00
|
|
|
|
|
|
|
local grp = {} -- Helper
|
|
|
|
|
|
|
|
-- Wood types
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("jogan_wood", "ethereal:jogan_wood",
|
|
|
|
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
|
|
|
{"jogan_wood.png"},
|
|
|
|
"Jogan Wood",
|
2020-09-12 18:45:11 +02:00
|
|
|
stairs.wood, false)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("pine_wood", "ethereal:pine_wood",
|
|
|
|
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
|
|
|
{"pine_wood.png"},
|
|
|
|
"Pine Wood",
|
2020-09-12 18:45:11 +02:00
|
|
|
stairs.wood, false)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("palm_wood", "ethereal:palm_wood",
|
|
|
|
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
|
|
|
{"palm_wood.png"},
|
|
|
|
"Palm Wood",
|
2020-09-12 18:45:11 +02:00
|
|
|
stairs.wood, false)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("wroshyr_wood", "ethereal:wroshyr_wood",
|
|
|
|
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
|
|
|
{"wroshyr_wood.png"},
|
|
|
|
"Wroshyr Wood",
|
|
|
|
stairs.wood, false)
|
|
|
|
|
|
|
|
stairs.register_all("brylark_wood", "ethereal:brylark_wood",
|
|
|
|
{cracky = 1, level = 2},
|
|
|
|
{"brylark_wood.png"},
|
|
|
|
"Brylark Wood",
|
|
|
|
stairs.wood, false)
|
2020-09-12 18:45:11 +02:00
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("uneti_wood", "ethereal:uneti_wood",
|
|
|
|
{choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
|
|
|
{"uneti_wood.png"},
|
|
|
|
"Uneti Wood",
|
2020-09-12 18:45:11 +02:00
|
|
|
stairs.wood, false)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("gnarltree_wood", "ethereal:gnarltree_wood",
|
|
|
|
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
|
|
|
{"gnarltree_wood.png"},
|
|
|
|
"Gnarltree Wood",
|
2020-09-12 18:45:11 +02:00
|
|
|
stairs.wood, false)
|
|
|
|
|
|
|
|
-- Stone types
|
|
|
|
|
|
|
|
stairs.register_all("stone", "default:stone",
|
|
|
|
{cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"stone.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Stone",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("stone_brick", "default:stone_brick",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"stone_brick.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Stone Brick",
|
|
|
|
stairs.stone, false)
|
|
|
|
|
|
|
|
stairs.register_all("stone_block", "default:stone_block",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"stone_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Stone Block",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
stairs.register_all("cobble", "default:cobble",
|
|
|
|
{cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"cobble.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Cobble",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("cobble_mossy", "default:cobble_mossy",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"cobble_mossy.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Mossy Cobble",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
stairs.register_all("desert_stone", "default:desert_stone",
|
|
|
|
{cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"desert_stone.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Desert Stone",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("desert_stone_brick", "default:desert_stone_brick",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"desert_stone_brick.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Desert Stone Brick",
|
|
|
|
stairs.stone, false)
|
|
|
|
|
|
|
|
stairs.register_all("desert_stone_block", "default:desert_stone_block",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"desert_stone_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Desert Stone Block",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
stairs.register_all("desert_cobble", "default:desert_cobble",
|
|
|
|
{cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"desert_cobble.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Desert Cobble",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
-- Sandstone types
|
|
|
|
|
|
|
|
stairs.register_all("sandstone", "default:sandstone",
|
|
|
|
{crumbly = 1, cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"sandstone.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Sandstone",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("sandstone_brick", "default:sandstone_brick",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"sandstone_brick.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Sandstone Brick",
|
|
|
|
stairs.stone, false)
|
|
|
|
|
|
|
|
stairs.register_all("sandstone_block", "default:sandstone_block",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"sandstone_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Sandstone Block",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
stairs.register_all("desert_sandstone", "default:desert_sandstone",
|
|
|
|
{crumbly = 1, cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"desert_sandstone.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Desert Sandstone",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
stairs.register_all("desert_sandstone_brick", "default:desert_sandstone_brick",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"desert_sandstone_brick.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Desert Sandstone Brick",
|
|
|
|
stairs.stone, false)
|
|
|
|
|
|
|
|
stairs.register_all("desert_sandstone_block", "default:desert_sandstone_block",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"desert_sandstone_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Desert Sandstone Block",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
stairs.register_all("silver_sandstone", "default:silver_sandstone",
|
|
|
|
{crumbly = 1, cracky = 3},
|
2020-09-12 23:02:56 +02:00
|
|
|
{"silver_sandstone.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Silver Sandstone",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
stairs.register_all("silver_sandstone_brick", "default:silver_sandstone_brick",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"silver_sandstone_brick.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Silver Sandstone Brick",
|
|
|
|
stairs.stone, false)
|
|
|
|
|
|
|
|
stairs.register_all("silver_sandstone_block", "default:silver_sandstone_block",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"silver_sandstone_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Silver Sandstone Block",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
-- Obsidian
|
|
|
|
|
|
|
|
stairs.register_all("obsidian", "default:obsidian",
|
|
|
|
{cracky = 1, level = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"obsidian.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Obsidian",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("obsidian_brick", "default:obsidian_brick",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 1, level = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"obsidian_brick.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Obsidian Brick",
|
|
|
|
stairs.stone, false)
|
|
|
|
|
|
|
|
stairs.register_all("obsidian_block", "default:obsidian_block",
|
|
|
|
{cracky = 1, level = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"obsidian_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Obsidian block",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
|
|
|
-- Cloud (with overrides)
|
|
|
|
|
|
|
|
stairs.register_stair("cloud", "default:cloud",
|
|
|
|
{unbreakable = 1, not_in_creative_inventory = 1},
|
|
|
|
{"default_cloud.png"},
|
|
|
|
"Cloud Stair",
|
|
|
|
stairs.wool)
|
|
|
|
|
|
|
|
minetest.override_item("stairs:stair_cloud", {
|
|
|
|
on_blast = function() end,
|
|
|
|
on_drop = function(itemstack, dropper, pos) end,
|
|
|
|
drop = {},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairs.register_slab("cloud", "default:cloud",
|
|
|
|
{unbreakable = 1, not_in_creative_inventory = 1},
|
|
|
|
{"default_cloud.png"},
|
|
|
|
"Cloud Slab",
|
|
|
|
stairs.wool)
|
|
|
|
|
|
|
|
minetest.override_item("stairs:slab_cloud", {
|
|
|
|
on_blast = function() end,
|
|
|
|
on_drop = function(itemstack, dropper, pos) end,
|
|
|
|
drop = {},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Ores
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("coal_block", "default:coal_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"coal_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Coal",
|
|
|
|
stairs.stone, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("durasteel_block", "default:durasteel_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 1, level = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"durasteel_block.png"},
|
|
|
|
"Durasteel",
|
2020-09-12 18:45:11 +02:00
|
|
|
stairs.metal, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("copper_block", "default:copper_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 1, level = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"copper_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Copper",
|
|
|
|
stairs.metal, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("bronze_block", "default:bronze_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 1, level = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"bronze_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Bronze",
|
|
|
|
stairs.metal, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("tin_block", "default:tin_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 1, level = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"tin_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Tin",
|
|
|
|
stairs.metal, true)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("gold_block", "default:gold_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 1},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"gold_block.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Gold",
|
|
|
|
stairs.metal)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("beskar_block", "default:beskar_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{cracky = 1, level = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"beskar_block.png"},
|
|
|
|
"Beskar",
|
2020-09-12 18:45:11 +02:00
|
|
|
stairs.stone)
|
|
|
|
|
|
|
|
-- Glass types
|
|
|
|
|
|
|
|
stairs.register_all("glass", "default:glass",
|
|
|
|
{cracky = 3, oddly_breakable_by_hand = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"glass.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Glass",
|
|
|
|
stairs.glass)
|
|
|
|
|
|
|
|
stairs.register_all("obsidian_glass", "default:obsidian_glass",
|
|
|
|
{cracky = 2},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"obsidian_glass.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Obsidian Glass",
|
|
|
|
stairs.glass)
|
|
|
|
|
|
|
|
-- Brick, Snow and Ice
|
|
|
|
|
|
|
|
stairs.register_all("brick", "default:brick",
|
|
|
|
{cracky = 3},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"brick.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Brick",
|
|
|
|
stairs.stone, false)
|
|
|
|
|
2020-09-12 19:11:27 +02:00
|
|
|
stairs.register_all("snow_block", "default:snow_block",
|
2020-09-12 18:45:11 +02:00
|
|
|
{crumbly = 3, cools_lava = 1, snowy = 1},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"snow.png"},
|
|
|
|
"Snow",
|
2020-09-12 18:45:11 +02:00
|
|
|
default.node_sound_snow_defaults(), true)
|
|
|
|
|
|
|
|
stairs.register_all("ice", "default:ice",
|
|
|
|
{cracky = 3, cools_lava = 1},
|
2020-09-12 19:11:27 +02:00
|
|
|
{"ice.png"},
|
2020-09-12 18:45:11 +02:00
|
|
|
"Ice",
|
|
|
|
default.node_sound_glass_defaults(), true)
|
|
|
|
|
|
|
|
--= Wool Mod
|
|
|
|
|
|
|
|
if minetest.get_modpath("wool") then
|
|
|
|
|
|
|
|
local colours = {
|
|
|
|
{"black", "Black", "#000000b0"},
|
|
|
|
{"blue", "Blue", "#015dbb70"},
|
|
|
|
{"brown", "Brown", "#a78c4570"},
|
|
|
|
{"cyan", "Cyan", "#01ffd870"},
|
|
|
|
{"dark_green", "Dark Green", "#005b0770"},
|
|
|
|
{"dark_grey", "Dark Grey", "#303030b0"},
|
|
|
|
{"green", "Green", "#61ff0170"},
|
|
|
|
{"grey", "Grey", "#5b5b5bb0"},
|
|
|
|
{"magenta", "Magenta", "#ff05bb70"},
|
|
|
|
{"orange", "Orange", "#ff840170"},
|
|
|
|
{"pink", "Pink", "#ff65b570"},
|
|
|
|
{"red", "Red", "#ff000070"},
|
|
|
|
{"violet", "Violet", "#2000c970"},
|
|
|
|
{"white", "White", "#abababc0"},
|
|
|
|
{"yellow", "Yellow", "#e3ff0070"},
|
|
|
|
}
|
|
|
|
|
|
|
|
for i = 1, #colours, 1 do
|
|
|
|
|
|
|
|
stairs.register_all("wool_" .. colours[i][1], "wool:" .. colours[i][1],
|
|
|
|
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, flammable = 3},
|
|
|
|
{"wool_" .. colours[i][1] .. ".png"},
|
|
|
|
colours[i][2] .. " Wool",
|
|
|
|
stairs.wool)
|
|
|
|
|
|
|
|
end -- END for
|
|
|
|
|
|
|
|
end
|