Recipe for planks

This commit is contained in:
Kotolegokot 2012-11-25 18:04:15 +06:00
parent 51961bdc14
commit e7788156eb

View File

@ -47,6 +47,19 @@ function realtest.register_tree(name, TreeDef)
inventory_image = tree.textures[7],
})
minetest.register_craft({
output = tree.name.."_planks",
recipe = {
{tree.name.."_plank",tree.name.."_plank"},
{tree.name.."_plank",tree.name.."_plank"}
}
})
minetest.register_craft({
output = tree.name.."_plank 4",
recipe = {{tree.name.."_planks"}}
})
minetest.register_node(tree.name.."_log", {
description = tree.description.." Log",
tiles = tree.textures[1],