Add orange juice

This commit is contained in:
rubenwardy 2014-11-16 12:38:20 +00:00
parent fee1ca8670
commit e2d20a6a2c
6 changed files with 111 additions and 89 deletions

View File

@ -59,6 +59,22 @@ food.module("potato", function()
})
end, true)
food.module("orange", function()
minetest.register_craftitem("food:orange", {
description = S("Orange"),
inventory_image = "food_orange.png",
groups = {food_orange = 1}
})
food.craft({
output = "food:orange",
recipe = {
{"", "default:desert_sand", ""},
{"default:desert_sand", "default:desert_sand", "default:desert_sand"},
{"", "default:desert_sand", ""}
}
})
end, true)
food.module("tomato", function()
minetest.register_craftitem("food:tomato", {
description = S("Tomato"),

View File

@ -125,7 +125,7 @@ for i=1, #soups do
end
-- Juices
local juices = {"apple","cactus"}
local juices = {"apple", "orange", "cactus"}
for i=1, #juices do
local flav = juices[i]
food.module(flav.."_juice", function()
@ -138,7 +138,7 @@ for i=1, #juices do
output = "food:"..flav.."_juice 4",
recipe = {
{"","",""},
{"","default:"..flav,""},
{"","group:food_"..flav,""},
{"","group:food_cup",""},
}
})

View File

@ -5,6 +5,7 @@ Flour = Mehl
Potato = Kartoffel
Tomato = Tomate
Carrot = Karotte
Orange =
Milk = Milch
Egg = Ei
Cocoa Bean = Kakaobohne

View File

@ -5,6 +5,7 @@ Flour =
Potato =
Tomato =
Carrot =
Orange =
Milk =
Egg =
Cocoa Bean =
@ -28,6 +29,7 @@ Uncooked chicken Soup =
apple Juice =
cactus Juice =
Rainbow Juice =
Orange Juice =
Cake =
Chocolate Cake =
Carrot Cake =

View File

@ -14,6 +14,9 @@
-- Add support for other mods
food.support("cocoa", "farming_plus:cocoa_bean")
food.support("cup", "vessels:drinking_glass")
food.support("cactus", "default:cactus")
food.support("apple", "default:apple")
food.support("orange", "farming_plus:orange_item")
food.support("potato", {
"docfarming:potato",
"veggies:potato",

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B