Add files via upload
parent
19e29af9b9
commit
0ee5f3be28
45
crafts.lua
45
crafts.lua
|
@ -41,4 +41,49 @@ minetest.register_craft({
|
|||
{'', 'default:pine_tree', 'default:pine_tree'},
|
||||
{'', 'default:pine_tree', 'default:pine_tree'}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'xblocks:wood_acagle',
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'', 'default:acacia_wood', 'default:junglewood'},
|
||||
{'', 'default:junglewood', 'default:acacia_wood'}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'xblocks:wood_acapine',
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'', 'default:acacia_wood', 'default:pine_wood'},
|
||||
{'', 'default:pine_wood', 'default:acacia_wood'}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'xblocks:wood_acaspen',
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'', 'default:acacia_wood', 'default:aspen_wood'},
|
||||
{'', 'default:aspen_wood', 'default:acacia_wood'}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'xblocks:wood_aspod',
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'', 'default:aspen_wood', 'default:wood'},
|
||||
{'', 'default:wood', 'default:aspen_wood'}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'xblocks:wood_junpine',
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'', 'default:pine_wood', 'default:pine_wood'},
|
||||
{'', 'default:junglewood', 'default:acacia_wood'}
|
||||
}
|
||||
})
|
22
nodes.lua
22
nodes.lua
|
@ -85,4 +85,26 @@ minetest.register_node('xblocks:button_down_' ..material, {
|
|||
minetest.set_node(pos, node)
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
local wood_table = { --name, material, invimg
|
||||
{'Acaspen Wood', 'acaspen'},
|
||||
{'Acagle Wood', 'acagle'},
|
||||
{'Acapine Wood', 'acapine'},
|
||||
{'Aspod Wood', 'aspod'},
|
||||
{'Junpine Wood', 'junpine'}
|
||||
}
|
||||
|
||||
for i in ipairs (wood_table) do
|
||||
local name = wood_table[i][1]
|
||||
local material = wood_table[i][2]
|
||||
local invimg = wood_table[i][3]
|
||||
|
||||
minetest.register_node('xblocks:wood_' ..material, {
|
||||
description = name,
|
||||
tiles = {material..'_wood.png'},
|
||||
groups = {choppy=2,oddly_breakable_by_hand=2, furn=1, flammable=1},
|
||||
paramtype = 'light',
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
Binary file not shown.
After Width: | Height: | Size: 364 B |
Binary file not shown.
After Width: | Height: | Size: 392 B |
Binary file not shown.
After Width: | Height: | Size: 387 B |
Binary file not shown.
After Width: | Height: | Size: 361 B |
Binary file not shown.
After Width: | Height: | Size: 370 B |
Loading…
Reference in New Issue