forked from mtcontrib/food
Add recipes for supported
This commit is contained in:
parent
38662b0a19
commit
d323299916
154
support.lua
154
support.lua
|
@ -25,34 +25,31 @@ function node_implement(modname,n_ext,n_int,resultfunc)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print "Food [Support] - Vegetables and Fruit"
|
print "Food [Support] - Vegetables and Fruit"
|
||||||
print "Food [Support] - > Bread and Flour"
|
print "Food [Support] - > Bread and Flour"
|
||||||
|
|
||||||
node_implement("farming","farming:flour","food:flour",function()
|
node_implement("farming","farming:flour","food:flour",function()
|
||||||
node_implement("plantlib","plantlib:wheat","food:wheat",function()
|
node_implement("plantlib","plantlib:wheat","food:wheat",function()
|
||||||
|
minetest.register_craft({
|
||||||
end)
|
output = '"food:wheat" 1',
|
||||||
minetest.register_craftitem("food:flour", {
|
recipe = {
|
||||||
description = "Flour",
|
{"default:dry_shrub"},
|
||||||
inventory_image = "farming_flour.png",
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
end)
|
||||||
output = '"food:flour" 1',
|
minetest.register_craftitem("food:flour", {
|
||||||
recipe = {
|
description = "Flour",
|
||||||
{"food:wheat"},
|
inventory_image = "farming_flour.png",
|
||||||
}
|
})
|
||||||
})
|
minetest.register_craft({
|
||||||
|
output = '"food:flour" 1',
|
||||||
|
recipe = {
|
||||||
|
{"food:wheat"},
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
node_implement("farming","farming:bread","food:bread",function()
|
node_implement("farming","farming:bread","food:bread",function()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craftitem("food:bread", {
|
minetest.register_craftitem("food:bread", {
|
||||||
description = "Bread",
|
description = "Bread",
|
||||||
inventory_image = "food_bread.png",
|
inventory_image = "food_bread.png",
|
||||||
|
@ -60,22 +57,12 @@ minetest.register_craftitem("food:bread", {
|
||||||
on_use = minetest.item_eat(10),
|
on_use = minetest.item_eat(10),
|
||||||
groups={food=2},
|
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({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "food:bread",
|
output = "food:bread",
|
||||||
recipe = "food:dough",
|
recipe = "food:dough",
|
||||||
cooktime = 10,
|
cooktime = 10,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
@ -84,6 +71,12 @@ minetest.register_craftitem("food:dough", {
|
||||||
description = "Cake Mix",
|
description = "Cake Mix",
|
||||||
inventory_image = "farming_cake_mix.png",
|
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)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
@ -97,6 +90,12 @@ minetest.register_craftitem("food:strawberry", {
|
||||||
inventory_image = "farming_strawberry.png",
|
inventory_image = "farming_strawberry.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:strawberry" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:apple"},
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -110,6 +109,12 @@ minetest.register_craftitem("food:carrot", {
|
||||||
inventory_image = "farming_carrot.png",
|
inventory_image = "farming_carrot.png",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:carrot" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:apple","default:apple","default:apple"},
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
@ -121,6 +126,14 @@ minetest.register_craftitem("food:rhubarb", {
|
||||||
description = "Rhubarb",
|
description = "Rhubarb",
|
||||||
inventory_image = "farming_rhubarb.png",
|
inventory_image = "farming_rhubarb.png",
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:rhubarb" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:apple"},
|
||||||
|
{"default:apple"},
|
||||||
|
{"default:apple"}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Cocoa Bean"
|
print "Food [Support] - > Cocoa Bean"
|
||||||
|
@ -129,6 +142,14 @@ minetest.register_craftitem("food:cocoa", {
|
||||||
description = "Cocoa Bean",
|
description = "Cocoa Bean",
|
||||||
inventory_image = "farming_cocoa_bean.png",
|
inventory_image = "farming_cocoa_bean.png",
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:cocoa" 1',
|
||||||
|
recipe = {
|
||||||
|
{"","default:apple",""},
|
||||||
|
{"default:apple","","default:apple"},
|
||||||
|
{"","default:apple",""}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
@ -147,6 +168,13 @@ minetest.register_node("food:banana", {
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:banana" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:apple"},
|
||||||
|
{"default:apple"}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Tomato"
|
print "Food [Support] - > Tomato"
|
||||||
|
@ -157,6 +185,14 @@ minetest.register_craftitem("food:tomato", {
|
||||||
inventory_image = "farming_strawberry.png",
|
inventory_image = "farming_strawberry.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:rhubarb" 1',
|
||||||
|
recipe = {
|
||||||
|
{""},
|
||||||
|
{""},
|
||||||
|
{"default:apple"}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -166,6 +202,13 @@ minetest.register_craftitem("food:potato", {
|
||||||
description = "Potato",
|
description = "Potato",
|
||||||
inventory_image = "food_potato.png",
|
inventory_image = "food_potato.png",
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:rhubarb" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:apple"},
|
||||||
|
{"default:dirt"}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
node_implement("docfarming","docfarming:bakedpotato","food:potato_baked",function()
|
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",
|
inventory_image = "food_baked_potato.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "food:potato_baked",
|
||||||
|
recipe = "food:potato",
|
||||||
|
cooktime = 2,
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Coffee"
|
print "Food [Support] - > Coffee"
|
||||||
|
@ -206,6 +255,13 @@ minetest.register_craftitem("food:meat_raw", {
|
||||||
groups = { meat=1, eatable=1 },
|
groups = { meat=1, eatable=1 },
|
||||||
stack_max=25
|
stack_max=25
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:meat_raw" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:apple"},
|
||||||
|
{"default:dirt"}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -220,22 +276,10 @@ minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "food:meat",
|
output = "food:meat",
|
||||||
recipe = "food:meat_raw",
|
recipe = "food:meat_raw",
|
||||||
cooktime = 20
|
cooktime = 30
|
||||||
})
|
})
|
||||||
end)
|
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"
|
print "Food [Support] - > Egg"
|
||||||
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
||||||
minetest.register_craftitem("food:egg", {
|
minetest.register_craftitem("food:egg", {
|
||||||
|
@ -243,6 +287,13 @@ node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
||||||
image = "animalmaterials_egg.png",
|
image = "animalmaterials_egg.png",
|
||||||
stack_max=10
|
stack_max=10
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:egg" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:sand"},
|
||||||
|
{"default:apple"}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Milk"
|
print "Food [Support] - > Milk"
|
||||||
|
@ -255,6 +306,14 @@ node_implement("my_mobs","my_mobs:milk_glass_cup","food:milk",function()
|
||||||
groups = { eatable=1 },
|
groups = { eatable=1 },
|
||||||
stack_max=10
|
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)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -267,6 +326,13 @@ node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
|
||||||
tiles = {"food_cup.png"},
|
tiles = {"food_cup.png"},
|
||||||
inventory_image = "food_cup.png",
|
inventory_image = "food_cup.png",
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = '"food:cup" 1',
|
||||||
|
recipe = {
|
||||||
|
{"default:glass"},
|
||||||
|
{"default:glass"}
|
||||||
|
}
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user