Add recipes for supported

This commit is contained in:
Rubenwardy 2013-05-01 17:19:23 +01:00
parent 38662b0a19
commit d323299916

View File

@ -25,17 +25,17 @@ function node_implement(modname,n_ext,n_int,resultfunc)
end
end
print "Food [Support] - Vegetables and Fruit"
print "Food [Support] - > Bread and Flour"
node_implement("farming","farming:flour","food:flour",function()
node_implement("plantlib","plantlib:wheat","food:wheat",function()
minetest.register_craft({
output = '"food:wheat" 1',
recipe = {
{"default:dry_shrub"},
}
})
end)
minetest.register_craftitem("food:flour", {
description = "Flour",
@ -50,9 +50,6 @@ minetest.register_craft({
end)
node_implement("farming","farming:bread","food:bread",function()
minetest.register_craftitem("food:bread", {
description = "Bread",
inventory_image = "food_bread.png",
@ -60,22 +57,12 @@ minetest.register_craftitem("food:bread", {
on_use = minetest.item_eat(10),
groups={food=2},
})
minetest.register_craft({
output = "food:dough",
type = "shapeless",
recipe = {"food:flour", "food:flour", "food:flour", "food:flour", "bucket:bucket_water"},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
})
minetest.register_craft({
type = "cooking",
output = "food:bread",
recipe = "food:dough",
cooktime = 10,
})
end)
@ -84,6 +71,12 @@ minetest.register_craftitem("food:dough", {
description = "Cake Mix",
inventory_image = "farming_cake_mix.png",
})
minetest.register_craft({
output = "food:dough",
type = "shapeless",
recipe = {"food:flour", "food:flour", "food:flour", "food:flour", "bucket:bucket_water"},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
})
end)
@ -97,6 +90,12 @@ minetest.register_craftitem("food:strawberry", {
inventory_image = "farming_strawberry.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:strawberry" 1',
recipe = {
{"default:apple"},
}
})
end)
end)
@ -110,6 +109,12 @@ minetest.register_craftitem("food:carrot", {
inventory_image = "farming_carrot.png",
on_use = minetest.item_eat(3),
})
minetest.register_craft({
output = '"food:carrot" 1',
recipe = {
{"default:apple","default:apple","default:apple"},
}
})
end)
end)
end)
@ -121,6 +126,14 @@ minetest.register_craftitem("food:rhubarb", {
description = "Rhubarb",
inventory_image = "farming_rhubarb.png",
})
minetest.register_craft({
output = '"food:rhubarb" 1',
recipe = {
{"default:apple"},
{"default:apple"},
{"default:apple"}
}
})
end)
print "Food [Support] - > Cocoa Bean"
@ -129,6 +142,14 @@ minetest.register_craftitem("food:cocoa", {
description = "Cocoa Bean",
inventory_image = "farming_cocoa_bean.png",
})
minetest.register_craft({
output = '"food:cocoa" 1',
recipe = {
{"","default:apple",""},
{"default:apple","","default:apple"},
{"","default:apple",""}
}
})
end)
@ -147,6 +168,13 @@ minetest.register_node("food:banana", {
sounds = default.node_sound_defaults(),
on_use = minetest.item_eat(6),
})
minetest.register_craft({
output = '"food:banana" 1',
recipe = {
{"default:apple"},
{"default:apple"}
}
})
end)
print "Food [Support] - > Tomato"
@ -157,6 +185,14 @@ minetest.register_craftitem("food:tomato", {
inventory_image = "farming_strawberry.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:rhubarb" 1',
recipe = {
{""},
{""},
{"default:apple"}
}
})
end)
end)
@ -166,6 +202,13 @@ minetest.register_craftitem("food:potato", {
description = "Potato",
inventory_image = "food_potato.png",
})
minetest.register_craft({
output = '"food:rhubarb" 1',
recipe = {
{"default:apple"},
{"default:dirt"}
}
})
end)
node_implement("docfarming","docfarming:bakedpotato","food:potato_baked",function()
@ -174,6 +217,12 @@ minetest.register_craftitem("food:potato_baked", {
inventory_image = "food_baked_potato.png",
on_use = minetest.item_eat(6),
})
minetest.register_craft({
type = "cooking",
output = "food:potato_baked",
recipe = "food:potato",
cooktime = 2,
})
end)
print "Food [Support] - > Coffee"
@ -206,6 +255,13 @@ minetest.register_craftitem("food:meat_raw", {
groups = { meat=1, eatable=1 },
stack_max=25
})
minetest.register_craft({
output = '"food:meat_raw" 1',
recipe = {
{"default:apple"},
{"default:dirt"}
}
})
end)
end)
@ -220,22 +276,10 @@ minetest.register_craft({
type = "cooking",
output = "food:meat",
recipe = "food:meat_raw",
cooktime = 20
cooktime = 30
})
end)
node_implement("my_mobs","my_mobs:rabbit_cooked","food:rabbit",function()
node_implement("mobs","mobs:meat","food:rabbit",function()
minetest.register_craftitem("food:rabbit", {
description = "Cooked Rabbit",
inventory_image = "my_mobs_cooked_rabbit.png",
on_use = minetest.item_eat(5),
})
end)
end)
print "Food [Support] - > Egg"
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
minetest.register_craftitem("food:egg", {
@ -243,6 +287,13 @@ node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
image = "animalmaterials_egg.png",
stack_max=10
})
minetest.register_craft({
output = '"food:egg" 1',
recipe = {
{"default:sand"},
{"default:apple"}
}
})
end)
print "Food [Support] - > Milk"
@ -255,6 +306,14 @@ node_implement("my_mobs","my_mobs:milk_glass_cup","food:milk",function()
groups = { eatable=1 },
stack_max=10
})
minetest.register_craft({
output = '"food:meat_raw" 1',
recipe = {
{"default:apple"},
{"bucket:bucket_water"}
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
})
end)
end)
@ -267,6 +326,13 @@ node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
tiles = {"food_cup.png"},
inventory_image = "food_cup.png",
})
minetest.register_craft({
output = '"food:cup" 1',
recipe = {
{"default:glass"},
{"default:glass"}
}
})
end)
end)