forked from mtcontrib/food
Add orange juice
This commit is contained in:
parent
fee1ca8670
commit
e2d20a6a2c
138
ingredients.lua
138
ingredients.lua
@ -8,36 +8,36 @@
|
|||||||
|
|
||||||
food.module("wheat", function()
|
food.module("wheat", function()
|
||||||
minetest.register_craftitem("food:wheat", {
|
minetest.register_craftitem("food:wheat", {
|
||||||
description = S("Wheat"),
|
description = S("Wheat"),
|
||||||
inventory_image = "food_wheat.png",
|
inventory_image = "food_wheat.png",
|
||||||
groups = {food_wheat=1}
|
groups = {food_wheat=1}
|
||||||
})
|
})
|
||||||
|
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:wheat",
|
output = "food:wheat",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:dry_shrub"},
|
{"default:dry_shrub"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end, true)
|
end, true)
|
||||||
|
|
||||||
food.module("flour", function()
|
food.module("flour", function()
|
||||||
minetest.register_craftitem("food:flour", {
|
minetest.register_craftitem("food:flour", {
|
||||||
description = S("Flour"),
|
description = S("Flour"),
|
||||||
inventory_image = "food_flour.png",
|
inventory_image = "food_flour.png",
|
||||||
groups = {food_flour = 1}
|
groups = {food_flour = 1}
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:flour",
|
output = "food:flour",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:food_wheat"},
|
{"group:food_wheat"},
|
||||||
{"group:food_wheat"}
|
{"group:food_wheat"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:flour",
|
output = "food:flour",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:sand"},
|
{"default:sand"},
|
||||||
{"default:sand"}
|
{"default:sand"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -45,31 +45,47 @@ end, true)
|
|||||||
|
|
||||||
food.module("potato", function()
|
food.module("potato", function()
|
||||||
minetest.register_craftitem("food:potato", {
|
minetest.register_craftitem("food:potato", {
|
||||||
description = S("Potato"),
|
description = S("Potato"),
|
||||||
inventory_image = "food_potato.png",
|
inventory_image = "food_potato.png",
|
||||||
groups = {food_potato = 1}
|
groups = {food_potato = 1}
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:potato",
|
output = "food:potato",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:dirt"},
|
{"default:dirt"},
|
||||||
{"default:apple"}
|
{"default:apple"}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end, true)
|
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()
|
food.module("tomato", function()
|
||||||
minetest.register_craftitem("food:tomato", {
|
minetest.register_craftitem("food:tomato", {
|
||||||
description = S("Tomato"),
|
description = S("Tomato"),
|
||||||
inventory_image = "food_tomato.png",
|
inventory_image = "food_tomato.png",
|
||||||
groups = {food_tomato = 1}
|
groups = {food_tomato = 1}
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:tomato",
|
output = "food:tomato",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "default:desert_sand", ""},
|
{"", "default:desert_sand", ""},
|
||||||
{"default:desert_sand", "", "default:desert_sand"},
|
{"default:desert_sand", "", "default:desert_sand"},
|
||||||
{"", "default:desert_sand", ""}
|
{"", "default:desert_sand", ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -77,48 +93,48 @@ end, true)
|
|||||||
|
|
||||||
food.module("carrot", function()
|
food.module("carrot", function()
|
||||||
minetest.register_craftitem("food:carrot", {
|
minetest.register_craftitem("food:carrot", {
|
||||||
description = S("Carrot"),
|
description = S("Carrot"),
|
||||||
inventory_image = "food_carrot.png",
|
inventory_image = "food_carrot.png",
|
||||||
groups = {food_carrot=1},
|
groups = {food_carrot=1},
|
||||||
on_use = food.item_eat(3)
|
on_use = food.item_eat(3)
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:carrot",
|
output = "food:carrot",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:apple", "default:apple", "default:apple"},
|
{"default:apple", "default:apple", "default:apple"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end, true)
|
end, true)
|
||||||
|
|
||||||
food.module("milk", function()
|
food.module("milk", function()
|
||||||
minetest.register_craftitem("food:milk", {
|
minetest.register_craftitem("food:milk", {
|
||||||
description = S("Milk"),
|
description = S("Milk"),
|
||||||
image = "food_milk.png",
|
image = "food_milk.png",
|
||||||
on_use = food.item_eat(1),
|
on_use = food.item_eat(1),
|
||||||
groups = { eatable=1, food_milk = 1 },
|
groups = { eatable=1, food_milk = 1 },
|
||||||
stack_max=10
|
stack_max=10
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:milk",
|
output = "food:milk",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:sand"},
|
{"default:sand"},
|
||||||
{"bucket:bucket_water"}
|
{"bucket:bucket_water"}
|
||||||
},
|
},
|
||||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
|
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
|
||||||
})
|
})
|
||||||
end, true)
|
end, true)
|
||||||
|
|
||||||
food.module("egg", function()
|
food.module("egg", function()
|
||||||
minetest.register_craftitem("food:egg", {
|
minetest.register_craftitem("food:egg", {
|
||||||
description = S("Egg"),
|
description = S("Egg"),
|
||||||
inventory_image = "food_egg.png",
|
inventory_image = "food_egg.png",
|
||||||
groups = {food_egg=1}
|
groups = {food_egg=1}
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:egg",
|
output = "food:egg",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "default:sand", ""},
|
{"", "default:sand", ""},
|
||||||
{"default:sand", "", "default:sand"},
|
{"default:sand", "", "default:sand"},
|
||||||
{"", "default:sand", ""}
|
{"", "default:sand", ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -126,15 +142,15 @@ end, true)
|
|||||||
|
|
||||||
food.module("cocoa", function()
|
food.module("cocoa", function()
|
||||||
minetest.register_craftitem("food:cocoa", {
|
minetest.register_craftitem("food:cocoa", {
|
||||||
description = S("Cocoa Bean"),
|
description = S("Cocoa Bean"),
|
||||||
inventory_image = "food_cocoa.png",
|
inventory_image = "food_cocoa.png",
|
||||||
groups = {food_cocoa=1}
|
groups = {food_cocoa=1}
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:cocoa",
|
output = "food:cocoa",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "default:apple", ""},
|
{"", "default:apple", ""},
|
||||||
{"default:apple", "", "default:apple"},
|
{"default:apple", "", "default:apple"},
|
||||||
{"", "default:apple", ""}
|
{"", "default:apple", ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -142,29 +158,29 @@ end, true)
|
|||||||
|
|
||||||
food.module("meat", function()
|
food.module("meat", function()
|
||||||
minetest.register_craftitem("food:meat", {
|
minetest.register_craftitem("food:meat", {
|
||||||
description = S("Venison"),
|
description = S("Venison"),
|
||||||
inventory_image = "food_meat.png",
|
inventory_image = "food_meat.png",
|
||||||
groups = {food_meat=1, food_chicken=1}
|
groups = {food_meat=1, food_chicken=1}
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "food:meat",
|
output = "food:meat",
|
||||||
recipe = "group:food_meat_raw",
|
recipe = "group:food_meat_raw",
|
||||||
cooktime = 30
|
cooktime = 30
|
||||||
})
|
})
|
||||||
|
|
||||||
if not minetest.get_modpath("animalmaterials") then
|
if not minetest.get_modpath("animalmaterials") then
|
||||||
minetest.register_craftitem("food:meat_raw", {
|
minetest.register_craftitem("food:meat_raw", {
|
||||||
description = S("Raw meat"),
|
description = S("Raw meat"),
|
||||||
image = "food_meat_raw.png",
|
image = "food_meat_raw.png",
|
||||||
on_use = food.item_eat(1),
|
on_use = food.item_eat(1),
|
||||||
groups = { meat=1, eatable=1, food_meat_raw=1 },
|
groups = { meat=1, eatable=1, food_meat_raw=1 },
|
||||||
stack_max=25
|
stack_max=25
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:meat_raw",
|
output = "food:meat_raw",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:apple"},
|
{"default:apple"},
|
||||||
{"default:dirt"}
|
{"default:dirt"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -173,15 +189,15 @@ end, true)
|
|||||||
|
|
||||||
food.module("sugar", function()
|
food.module("sugar", function()
|
||||||
minetest.register_craftitem("food:sugar", {
|
minetest.register_craftitem("food:sugar", {
|
||||||
description = S("Sugar"),
|
description = S("Sugar"),
|
||||||
inventory_image = "food_sugar.png",
|
inventory_image = "food_sugar.png",
|
||||||
groups = {food_sugar=1}
|
groups = {food_sugar=1}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "food:sugar 20",
|
output = "food:sugar 20",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:papyrus"},
|
{"default:papyrus"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end, true)
|
end, true)
|
||||||
@ -261,9 +277,9 @@ end, true)
|
|||||||
|
|
||||||
if (minetest.get_modpath("animalmaterials") and not minetest.get_modpath("mobfcooking")) then
|
if (minetest.get_modpath("animalmaterials") and not minetest.get_modpath("mobfcooking")) then
|
||||||
food.craft({
|
food.craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "food:meat",
|
output = "food:meat",
|
||||||
recipe = "animalmaterials:meat_raw",
|
recipe = "animalmaterials:meat_raw",
|
||||||
cooktime = 30
|
cooktime = 30
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
8
init.lua
8
init.lua
@ -105,7 +105,7 @@ for i=1, #soups do
|
|||||||
minetest.register_craftitem("food:soup_"..flav[1].."_raw",{
|
minetest.register_craftitem("food:soup_"..flav[1].."_raw",{
|
||||||
description = S("Uncooked ".. flav[1].." Soup"),
|
description = S("Uncooked ".. flav[1].." Soup"),
|
||||||
inventory_image = "food_soup_"..flav[1].."_raw.png",
|
inventory_image = "food_soup_"..flav[1].."_raw.png",
|
||||||
|
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
@ -125,7 +125,7 @@ for i=1, #soups do
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Juices
|
-- Juices
|
||||||
local juices = {"apple","cactus"}
|
local juices = {"apple", "orange", "cactus"}
|
||||||
for i=1, #juices do
|
for i=1, #juices do
|
||||||
local flav = juices[i]
|
local flav = juices[i]
|
||||||
food.module(flav.."_juice", function()
|
food.module(flav.."_juice", function()
|
||||||
@ -133,12 +133,12 @@ for i=1, #juices do
|
|||||||
description = S(flav.." Juice"),
|
description = S(flav.." Juice"),
|
||||||
inventory_image = "food_"..flav.."_juice.png",
|
inventory_image = "food_"..flav.."_juice.png",
|
||||||
on_use = food.item_eat(2),
|
on_use = food.item_eat(2),
|
||||||
})
|
})
|
||||||
food.craft({
|
food.craft({
|
||||||
output = "food:"..flav.."_juice 4",
|
output = "food:"..flav.."_juice 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"","",""},
|
{"","",""},
|
||||||
{"","default:"..flav,""},
|
{"","group:food_"..flav,""},
|
||||||
{"","group:food_cup",""},
|
{"","group:food_cup",""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -5,6 +5,7 @@ Flour = Mehl
|
|||||||
Potato = Kartoffel
|
Potato = Kartoffel
|
||||||
Tomato = Tomate
|
Tomato = Tomate
|
||||||
Carrot = Karotte
|
Carrot = Karotte
|
||||||
|
Orange =
|
||||||
Milk = Milch
|
Milk = Milch
|
||||||
Egg = Ei
|
Egg = Ei
|
||||||
Cocoa Bean = Kakaobohne
|
Cocoa Bean = Kakaobohne
|
||||||
|
@ -1,33 +1,35 @@
|
|||||||
# template
|
# template
|
||||||
|
|
||||||
Wheat =
|
Wheat =
|
||||||
Flour =
|
Flour =
|
||||||
Potato =
|
Potato =
|
||||||
Tomato =
|
Tomato =
|
||||||
Carrot =
|
Carrot =
|
||||||
Milk =
|
Orange =
|
||||||
Egg =
|
Milk =
|
||||||
Cocoa Bean =
|
Egg =
|
||||||
Raw meat =
|
Cocoa Bean =
|
||||||
Venison =
|
Raw meat =
|
||||||
Sugar =
|
Venison =
|
||||||
Chocolate Powder =
|
Sugar =
|
||||||
Dark Chocolate =
|
Chocolate Powder =
|
||||||
|
Dark Chocolate =
|
||||||
Milk Chocolate =
|
Milk Chocolate =
|
||||||
Pasta =
|
Pasta =
|
||||||
Bowl =
|
Bowl =
|
||||||
Butter =
|
Butter =
|
||||||
Cheese =
|
Cheese =
|
||||||
Baked Potato =
|
Baked Potato =
|
||||||
Pasta Bake =
|
Pasta Bake =
|
||||||
Raw Pasta Bake =
|
Raw Pasta Bake =
|
||||||
chicken Soup =
|
chicken Soup =
|
||||||
tomato Soup =
|
tomato Soup =
|
||||||
Uncooked tomato Soup =
|
Uncooked tomato Soup =
|
||||||
Uncooked chicken Soup =
|
Uncooked chicken Soup =
|
||||||
apple Juice =
|
apple Juice =
|
||||||
cactus Juice =
|
cactus Juice =
|
||||||
Rainbow Juice =
|
Rainbow Juice =
|
||||||
|
Orange Juice =
|
||||||
Cake =
|
Cake =
|
||||||
Chocolate Cake =
|
Chocolate Cake =
|
||||||
Carrot Cake =
|
Carrot Cake =
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
-- Add support for other mods
|
-- Add support for other mods
|
||||||
food.support("cocoa", "farming_plus:cocoa_bean")
|
food.support("cocoa", "farming_plus:cocoa_bean")
|
||||||
food.support("cup", "vessels:drinking_glass")
|
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", {
|
food.support("potato", {
|
||||||
"docfarming:potato",
|
"docfarming:potato",
|
||||||
"veggies:potato",
|
"veggies:potato",
|
||||||
|
BIN
textures/food_orange_juice.png
Normal file
BIN
textures/food_orange_juice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 620 B |
Loading…
Reference in New Issue
Block a user