28 lines
789 B
Lua
28 lines
789 B
Lua
-- GENERATED CODE
|
|
-- Node Box Editor, version 0.9.0
|
|
-- Namespace: test
|
|
|
|
local ingots = {
|
|
'steel', 'copper', 'tin', 'bronze', 'gold'
|
|
}
|
|
|
|
for _, ingot in ipairs(ingots) do
|
|
local tile = "default_"..ingot.."_block.png"
|
|
local og_def = core.registered_items["default:" .. ingot .. '_ingot']
|
|
minetest.register_node(":default:" .. ingot .. '_ingot', {
|
|
description = og_def.description,
|
|
tiles = { tile, tile, tile, tile, tile, tile, },
|
|
drawtype = "nodebox",
|
|
paramtype = "light",
|
|
inventory_image = og_def.inventory_image,
|
|
node_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{ -0.375, -0.5, -0.1875, 0.375, -0.3125, 0.1875 }, -- NodeBox1
|
|
{ -0.3125, -0.3125, -0.125, 0.3125, -0.25, 0.125 }, -- NodeBox6
|
|
}
|
|
},
|
|
groups = { cracky = 3, level = 2, falling_node = 1 },
|
|
})
|
|
end
|