MineClone2/mods/blocks/building/structural.lua

73 lines
2.4 KiB
Lua
Raw Normal View History

2024-06-07 11:47:58 +02:00
local S = building.translator
local commondefs = {
planks = {
_blast_resistance = 3,
_hardness = 2,
groups = {axey = 1, building_blocks = 1, handy = 1, planks = 1},
sounds = mcl_sounds.node_sound_wood_defaults(),
stack_max = 64
}
}
local planks = {
["acacia"] = {
description = S("Acacia Planks"),
2024-06-07 13:43:00 +02:00
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
2024-06-07 11:47:58 +02:00
tiles = {"building_acacia_planks.png"}
2024-06-07 13:43:00 +02:00
},
["bamboo"] = {
description = S("Bamboo Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_bamboo_planks.png"}
},
["birch"] = {
description = S("Birch Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_birch_planks.png"}
},
["cherry"] = {
description = S("Cherry Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_cherry_planks.png"}
},
["crimson"] = {
description = S("Crimson Planks"),
tiles = {"building_crimson_planks.png"}
},
["dark_oak"] = {
description = S("Dark Oak Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_dark_oak_planks.png"}
},
["jungle"] = {
description = S("Jungle Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_jungle_planks.png"}
},
["mangrove"] = {
description = S("Mangrove Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_mangrove_planks.png"}
},
["oak"] = {
description = S("Oak Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_oak_planks.png"}
},
["spruce"] = {
description = S("Spruce Planks"),
groups = {fire_encouragement = 20, fire_flammability = 5, fuel = 15},
tiles = {"building_spruce_planks.png"}
},
["warped"] = {
description = S("Warped Planks"),
tiles = {"building_warped_planks.png"}
2024-06-07 11:47:58 +02:00
}
}
for identifier, definitions in pairs(planks) do
identifier = ":blocks:"..identifier.."_planks"
minetest.register_node(identifier, table.merge(commondefs.planks, definitions))
end