Moved some recipes into trees

This commit is contained in:
Kotolegokot 2012-11-25 19:42:16 +06:00
parent 58836c04c0
commit 76a34edbf2
2 changed files with 71 additions and 72 deletions

View File

@ -48,33 +48,6 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = "default:sign_wall",
recipe = {
{"group:plank", "group:plank", "group:plank"},
{"group:plank", "group:plank", "group:plank"},
{"", "group:stick", ""},
}
})
minetest.register_craft({
output = "default:chest",
recipe = {
{"group:plank", "group:plank", "group:plank"},
{"group:plank", "", "group:plank"},
{"group:plank", "group:plank", "group:plank"},
}
})
minetest.register_craft({
output = "default:chest_locked",
recipe = {
{"group:plank", "group:plank", "group:plank"},
{"group:plank", "default:cobble", "group:plank"},
{"group:plank", "group:plank", "group:plank"},
}
})
minetest.register_craft({ minetest.register_craft({
output = "default:sandstone", output = "default:sandstone",
recipe = { recipe = {
@ -182,37 +155,12 @@ minetest.register_craft({
burntime = 15, burntime = 15,
}) })
minetest.register_craft({
type = "fuel",
recipe = "default:stick",
burntime = 1,
})
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "default:ladder", recipe = "default:ladder",
burntime = 15, burntime = 15,
}) })
minetest.register_craft({
type = "fuel",
recipe = "group:plank",
burntime = 2,
})
minetest.register_craft({
type = "fuel",
recipe = "group:planks",
burntime = 7,
})
minetest.register_craft({
type = "fuel",
recipe = "group:log",
burntime = 7,
})
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "default:torch", recipe = "default:torch",
@ -237,12 +185,6 @@ minetest.register_craft({
burntime = 40, burntime = 40,
}) })
minetest.register_craft({
type = "fuel",
recipe = "default:sapling",
burntime = 5,
})
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "default:apple", recipe = "default:apple",

View File

@ -48,20 +48,7 @@ function realtest.register_tree(name, TreeDef)
group = {plank=1}, group = {plank=1},
}) })
minetest.register_craft({ minetest.register_node(tree.name.."_log", {
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", description = tree.description.." Log",
tiles = tree.textures[1], tiles = tree.textures[1],
inventory_image = tree.textures[6], inventory_image = tree.textures[6],
@ -144,6 +131,76 @@ function realtest.register_tree(name, TreeDef)
end, end,
}) })
minetest.register_craft({
output = "default:sign_wall",
recipe = {
{tree.name.."_plank", tree.name.."_plank", tree.name.."_plank"},
{tree.name.."_plank", tree.name.."_plank", tree.name.."_plank"},
{"", tree.name.."_stick", ""},
}
})
minetest.register_craft({
output = "default:chest",
recipe = {
{tree.name.."_plank", tree.name.."_plank", tree.name.."_plank"},
{tree.name.."_plank", "", tree.name.."_plank"},
{tree.name.."_plank", tree.name.."_plank", tree.name.."_plank"},
}
})
minetest.register_craft({
output = "default:chest_locked",
recipe = {
{tree.name.."_plank", tree.name.."_plank", tree.name.."_plank"},
{tree.name.."_plank", "default:cobble", tree.name.."_plank"},
{tree.name.."_plank", tree.name.."_plank", tree.name.."_plank"},
}
})
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_craft({
type = "fuel",
recipe = tree.name.."_plank",
burntime = 2,
})
minetest.register_craft({
type = "fuel",
recipe = tree.name.."_planks",
burntime = 7,
})
minetest.register_craft({
type = "fuel",
recipe = tree.name.."_log",
burntime = 7,
})
minetest.register_craft({
type = "fuel",
recipe = tree.name.."_stick",
burntime = 1,
})
minetest.register_craft({
type = "fuel",
recipe = tree.name.."_sapling",
burntime = 5,
})
minetest.register_abm({ minetest.register_abm({
nodenames = {tree.name.."_sapling"}, nodenames = {tree.name.."_sapling"},
neighbors = tree.grounds, neighbors = tree.grounds,