mirror of
https://github.com/rubenwardy/food.git
synced 2025-01-05 14:20:18 +01:00
Add orange juice
This commit is contained in:
parent
fee1ca8670
commit
d9cb90c0be
12
init.lua
12
init.lua
@ -125,9 +125,13 @@ for i=1, #soups do
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Juices
|
-- Juices
|
||||||
local juices = {"apple","cactus"}
|
local juices = {apple = "default:apple",
|
||||||
for i=1, #juices do
|
cactus = "default:cactus"}
|
||||||
local flav = juices[i]
|
if minetest.get_modpath("farming_plus") then
|
||||||
|
juices["orange"] = "farming_plus:orange_item"
|
||||||
|
end
|
||||||
|
|
||||||
|
for flav, item in pairs(juices) do
|
||||||
food.module(flav.."_juice", function()
|
food.module(flav.."_juice", function()
|
||||||
minetest.register_craftitem("food:"..flav.."_juice", {
|
minetest.register_craftitem("food:"..flav.."_juice", {
|
||||||
description = S(flav.." Juice"),
|
description = S(flav.." Juice"),
|
||||||
@ -138,7 +142,7 @@ for i=1, #juices do
|
|||||||
output = "food:"..flav.."_juice 4",
|
output = "food:"..flav.."_juice 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"","",""},
|
{"","",""},
|
||||||
{"","default:"..flav,""},
|
{"",item,""},
|
||||||
{"","group:food_cup",""},
|
{"","group:food_cup",""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user