mirror of
https://github.com/Philipbenr/mtfoods.git
synced 2025-01-09 00:50:17 +01:00
Add support for the food mod's ingredient system
This commit is contained in:
parent
6025a22e09
commit
846d253509
26
desserts.lua
26
desserts.lua
@ -117,7 +117,7 @@ minetest.register_craft({
|
|||||||
output = "mtfoods:short_bread",
|
output = "mtfoods:short_bread",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'mtfoods:dandelion_milk'},
|
{'mtfoods:dandelion_milk'},
|
||||||
{'farming:bread'},
|
{ing.bread},
|
||||||
{'mtfoods:sugar'},
|
{'mtfoods:sugar'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -134,7 +134,7 @@ minetest.register_craft({
|
|||||||
output = "mtfoods:chocolate 5",
|
output = "mtfoods:chocolate 5",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'},
|
{'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'},
|
||||||
{'farming_plus:cocoa_bean', 'farming_plus:cocoa_bean', 'farming_plus:cocoa_bean'},
|
{ing.cocoa, ing.cocoa, ing.cocoa},
|
||||||
{'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'},
|
{'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -151,8 +151,8 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:strawberry_shortcake",
|
output = "mtfoods:strawberry_shortcake",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'mtfoods:cream', 'farming_plus:strawberry_item', 'mtfoods:cream'},
|
{'mtfoods:cream', ing.strawberry, 'mtfoods:cream'},
|
||||||
{'farming_plus:strawberry_item', 'mtfoods:short_bread', 'farming_plus:strawberry_item'},
|
{ing.strawberry, 'mtfoods:short_bread', ing.strawberry},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ minetest.register_craft({
|
|||||||
output = "mtfoods:cake",
|
output = "mtfoods:cake",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'', 'mtfoods:sugar', ''},
|
{'', 'mtfoods:sugar', ''},
|
||||||
{'mtfoods:dandelion_milk', 'farming:bread', 'mtfoods:dandelion_milk'},
|
{'mtfoods:dandelion_milk', ing.bread, 'mtfoods:dandelion_milk'},
|
||||||
{'', 'mtfoods:sugar', ''},
|
{'', 'mtfoods:sugar', ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -176,23 +176,23 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:carrot_cake",
|
output = "mtfoods:carrot_cake",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'', 'farming_plus:carrot_item', ''},
|
{'', ing.carrot, ''},
|
||||||
{'farming_plus:cocoa_bean', 'mtfoods:cake', 'farming_plus:cocoa_bean'},
|
{ing.cocoa, 'mtfoods:cake', ing.cocoa},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:pie_crust",
|
output = "mtfoods:pie_crust",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'farming:bread', 'farming:flour'},
|
{ing.bread, ing.flour},
|
||||||
{'farming:flour', 'mtfoods:sugar'},
|
{ing.flour, 'mtfoods:sugar'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:apple_pie",
|
output = "mtfoods:apple_pie",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:apple', 'default:apple', 'default:apple'},
|
{ing.apple, ing.apple, ing.apple},
|
||||||
{'', 'mtfoods:pie_crust', ''},
|
{'', 'mtfoods:pie_crust', ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -200,7 +200,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:rhubarb_pie",
|
output = "mtfoods:rhubarb_pie",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'farming_plus:rhubarb_item', 'farming_plus:rhubarb_item', 'farming_plus:rhubarb_item'},
|
{ing.rhubarb, ing.rhubarb, ing.rhubarb},
|
||||||
{'', 'mtfoods:pie_crust', ''},
|
{'', 'mtfoods:pie_crust', ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -208,7 +208,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:banana_pie",
|
output = "mtfoods:banana_pie",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'farming_plus:banana', 'mtfoods:cream', 'farming_plus:banana'},
|
{ing.banana, 'mtfoods:cream', ing.banana},
|
||||||
{'', 'mtfoods:pie_crust', ''},
|
{'', 'mtfoods:pie_crust', ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -216,7 +216,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:pumpkin_pie",
|
output = "mtfoods:pumpkin_pie",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'mtfoods:cream', 'farming:pumpkin', 'mtfoods:cream'},
|
{'mtfoods:cream', ing.pumpkin, 'mtfoods:cream'},
|
||||||
{'', 'mtfoods:pie_crust', ''},
|
{'', 'mtfoods:pie_crust', ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -25,7 +25,7 @@ minetest.register_craftitem("mtfoods:orange_juice", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "mtfoods:orange_juice",
|
output = "mtfoods:orange_juice",
|
||||||
recipe = {'mtfoods:glass_flute', 'farming_plus:orange'}
|
recipe = {'mtfoods:glass_flute', ing.orange}
|
||||||
})
|
})
|
||||||
|
|
||||||
--apple--
|
--apple--
|
||||||
@ -39,7 +39,7 @@ minetest.register_craftitem("mtfoods:apple_juice", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "mtfoods:apple_juice",
|
output = "mtfoods:apple_juice",
|
||||||
recipe = {'mtfoods:glass_flute', 'default:apple'}
|
recipe = {'mtfoods:glass_flute', ing.apple}
|
||||||
})
|
})
|
||||||
|
|
||||||
--Apple Cider--
|
--Apple Cider--
|
||||||
|
12
foods.lua
12
foods.lua
@ -12,9 +12,9 @@ minetest.register_craftitem( "mtfoods:mlt_burger", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:mlt_burger",
|
output = "mtfoods:mlt_burger",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'farming:bread', 'mobs:meat', ''},
|
{ing.bread, ing.meat, ''},
|
||||||
{'', 'default:junglegrass', ''},
|
{'', 'default:junglegrass', ''},
|
||||||
{'', 'farming_plus:tomato_item', 'farming:bread'},
|
{'', ing.tomato, ing.bread},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ minetest.register_craftitem( "mtfoods:potato_slices", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:potato_slices",
|
output = "mtfoods:potato_slices",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'farming_plus:potatoe_item'},
|
{ing.potato},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ minetest.register_craftitem( "mtfoods:medicine", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:medicine",
|
output = "mtfoods:medicine",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'', 'farming:wheat', ''},
|
{'', ing.wheat, ''},
|
||||||
{'mtfoods:dandelion_milk', 'default:junglegrass', 'mtfoods:chocolate'},
|
{'mtfoods:dandelion_milk', 'default:junglegrass', 'mtfoods:chocolate'},
|
||||||
{'', 'vessels:glass_bottle', ''},
|
{'', 'vessels:glass_bottle', ''},
|
||||||
}
|
}
|
||||||
@ -84,7 +84,7 @@ minetest.register_node( "mtfoods:casserole",{
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:casserole",
|
output = "mtfoods:casserole",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'farming_plus:carrot_item', 'farming_plus:potatoe_item', 'farming_plus:tomato_item'},
|
{ing.carrot, ing.potato, ing.tomato},
|
||||||
{'', 'farming:bread', ''},
|
{'', ing.bread, ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
41
init.lua
41
init.lua
@ -2,6 +2,47 @@
|
|||||||
--By: Philipbenr--
|
--By: Philipbenr--
|
||||||
--Licence: GPLv3--
|
--Licence: GPLv3--
|
||||||
|
|
||||||
|
ing = {
|
||||||
|
orange = "farming_plus:orange",
|
||||||
|
apple = "default:apple",
|
||||||
|
meat = "mobs:meat",
|
||||||
|
bread = "farming:bread",
|
||||||
|
tomato = "farming_plus:tomato_item",
|
||||||
|
wheat = "farming:wheat",
|
||||||
|
carrot = "farming_plus:carrot_item",
|
||||||
|
potato = "farming_plus:potato_item",
|
||||||
|
cocoa = "farming_plus:cocoa_bean",
|
||||||
|
strawberry = "farming_plus:strawberry_item",
|
||||||
|
flour = "farming:flour",
|
||||||
|
rhubarb = "farming_plus:rhubarb_item",
|
||||||
|
banana = "farming_plus:banana",
|
||||||
|
pumpkin = "farming:pumpkin",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Add support for the food mod's ingredient list
|
||||||
|
if minetest.get_modpath("food") then
|
||||||
|
food.support("strawberry","farming_plus","farming_plus:strawberry_item")
|
||||||
|
food.support("strawberry","plantlib","plantlib:strawberry")
|
||||||
|
food.support("strawberry","bushes_classic","bushes:strawberry")
|
||||||
|
food.support("rhubarb","farming_plus","farming_plus:rhubarb_item")
|
||||||
|
ing = {
|
||||||
|
orange = "farming_plus:orange",
|
||||||
|
apple = "default:apple",
|
||||||
|
meat = "group:food_meat",
|
||||||
|
bread = "farming:bread",
|
||||||
|
tomato = "group:food_tomato",
|
||||||
|
wheat = "group:food_wheat",
|
||||||
|
carrot = "group:food_carrot",
|
||||||
|
potato = "group:food_potato",
|
||||||
|
cocoa = "group:food_cocoa",
|
||||||
|
strawberry = "group:food_strawberry",
|
||||||
|
flour = "group:food_flour",
|
||||||
|
rhubarb = "group:food_rhubarb",
|
||||||
|
banana = "farming_plus:banana",
|
||||||
|
pumpkin = "farming:pumpkin",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
dofile(minetest.get_modpath("mtfoods").."/desserts.lua")
|
dofile(minetest.get_modpath("mtfoods").."/desserts.lua")
|
||||||
dofile(minetest.get_modpath("mtfoods").."/foods.lua")
|
dofile(minetest.get_modpath("mtfoods").."/foods.lua")
|
||||||
dofile(minetest.get_modpath("mtfoods").."/drinks.lua")
|
dofile(minetest.get_modpath("mtfoods").."/drinks.lua")
|
||||||
|
Loading…
Reference in New Issue
Block a user