Add food
42
mods/food/README.md
Normal file
@ -0,0 +1,42 @@
|
||||
The Food Mod
|
||||
============
|
||||
|
||||
This is the main mod in the food mod collection.
|
||||
|
||||
Version 2.2
|
||||
|
||||
The Aims
|
||||
--------
|
||||
|
||||
All content should follow these aims:
|
||||
* Basis for expansion - supplies a framework of ingredients for other mods to build upon
|
||||
* Mod support without dependancies - this allows flexibility for the user
|
||||
* Minetest-game worthy - (Minimalism) This mod only contains traditional foods - such as cakes, soups and bread.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
Recipe guide: https://www.dropbox.com/s/tsvjmobv9n3isu0/food_crafting.pdf?dl=1
|
||||
|
||||
Expansion Packs
|
||||
---------------
|
||||
|
||||
There are expansion mods available. Just install them in a mod folder, and everything should be fine.
|
||||
|
||||
* Sweet Foods - https://github.com/rubenwardy/food_sweet
|
||||
* Modern food (Needs updating) - burgers, soft drinks, pop corn, coffee, etc
|
||||
|
||||
Licensing
|
||||
---------
|
||||
|
||||
Created by rubenwardy
|
||||
License for code: GPL 3.0 or later.
|
||||
License for textures: CC-BY-SA
|
||||
|
||||
Exceptions:
|
||||
|
||||
* Baked potato texture by Doc, WTFPL
|
||||
* Dough, flour and wheat textures from default farming mod, WTFPL
|
||||
* Egg and milk textures from Mobf, CC BY SA
|
||||
|
||||
Have I missed out credit? Please tell me.
|
17
mods/food/depends.txt
Normal file
@ -0,0 +1,17 @@
|
||||
animalmaterials?
|
||||
bushes_classic?
|
||||
default?
|
||||
docfarming?
|
||||
diet?
|
||||
farming?
|
||||
farming_plus?
|
||||
hud?
|
||||
intllib?
|
||||
jkanimals?
|
||||
jkfarming?
|
||||
my_mobs?
|
||||
mobs?
|
||||
mobfcooking?
|
||||
plantlib?
|
||||
veggies?
|
||||
vessels?
|
689
mods/food/init.lua
Normal file
@ -0,0 +1,689 @@
|
||||
-- FOOD MOD
|
||||
-- A mod written by rubenwardy that adds
|
||||
-- food to the minetest game
|
||||
-- =====================================
|
||||
-- >> food/init.lua
|
||||
-- The support api for the mod, and some
|
||||
-- basic foods
|
||||
-- =====================================
|
||||
|
||||
print("Food Mod - Version 2.2")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if (intllib) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
food = {
|
||||
supported = {},
|
||||
atsup = {},
|
||||
df = {},
|
||||
debug = false,
|
||||
version = 2.2
|
||||
}
|
||||
|
||||
-- Checks for external content, and adds support
|
||||
function food.support(group,mod,item)
|
||||
food.atsup[group] = true
|
||||
if not minetest.get_modpath(mod) then
|
||||
if food.debug then
|
||||
print("[FOOD MOD DEBUG] mod '"..mod.."' is not installed")
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
local data = minetest.registered_items[item]
|
||||
if not data then
|
||||
print("[FOOD MOD WARNING] item '"..item.."' not found")
|
||||
return
|
||||
end
|
||||
|
||||
-- Need to copy this table, not modify it in place, otherwise it can change
|
||||
-- the groups for ALL craftitems that use the default groups.
|
||||
g = {}
|
||||
if data.groups then
|
||||
for k, v in pairs(data.groups) do
|
||||
g[k] = v
|
||||
end
|
||||
end
|
||||
g["food_"..group] = 1
|
||||
minetest.override_item(item, {groups = g})
|
||||
|
||||
food.supported[group] = true
|
||||
end
|
||||
|
||||
-- Defines built in items if needed
|
||||
function food.asupport(group,add)
|
||||
food.df[group] = true
|
||||
if food.supported[group] then
|
||||
return
|
||||
end
|
||||
|
||||
for name, def in pairs(minetest.registered_items) do
|
||||
local g = def.groups and def.groups["food_"..group] or 0
|
||||
if g > 0 then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
if food.debug then
|
||||
print("registering "..group.." inbuilt definition")
|
||||
end
|
||||
|
||||
add()
|
||||
end
|
||||
|
||||
-- Checks for hunger mods to register food on
|
||||
function food.item_eat(amt)
|
||||
if minetest.get_modpath("diet") then
|
||||
return diet.item_eat(amt)
|
||||
elseif minetest.get_modpath("hud") then
|
||||
return hud.item_eat(amt)
|
||||
else
|
||||
return minetest.item_eat(amt)
|
||||
end
|
||||
end
|
||||
|
||||
-- Registers craft item or node depending on settings
|
||||
function food.register(name,data,mod)
|
||||
if (minetest.setting_getbool("food_use_2d") or (mod ~= nil and minetest.setting_getbool("food_"..mod.."_use_2d"))) then
|
||||
minetest.register_craftitem(name,{
|
||||
description = data.description,
|
||||
inventory_image = data.inventory_image,
|
||||
groups = data.groups,
|
||||
on_use = data.on_use
|
||||
})
|
||||
else
|
||||
local newdata = {
|
||||
description = data.description,
|
||||
tiles = data.tiles,
|
||||
groups = data.groups,
|
||||
on_use = data.on_use,
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = data.node_box
|
||||
}
|
||||
if (minetest.setting_getbool("food_2d_inv_image")) then
|
||||
newdata.inventory_image = data.inventory_image
|
||||
end
|
||||
minetest.register_node(name,newdata)
|
||||
end
|
||||
end
|
||||
|
||||
-- Allows for overriding in the future
|
||||
function food.craft(craft)
|
||||
minetest.register_craft(craft)
|
||||
end
|
||||
|
||||
-- Debug to check all supports have in built version, etc
|
||||
if food.debug then
|
||||
minetest.after(0, function()
|
||||
for name, val in pairs(food.atsup) do
|
||||
if not food.df[name] then
|
||||
print("[FOOD MOD DEBUG] Ingredient "..name.." has no built in equiv")
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
for name, val in pairs(food.df) do
|
||||
if not food.atsup[name] then
|
||||
print("[FOOD MOD DEBUG] Inbuilt ingredient "..name.." has no supported external equiv")
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
-- Add support for other mods
|
||||
local function _meat(type,mod,item)
|
||||
food.support(type,mod,item)
|
||||
food.support("meat",mod,item)
|
||||
end
|
||||
food.support("wheat","farming","farming:wheat")
|
||||
food.support("flour","farming","farming:flour")
|
||||
food.support("potato","docfarming","docfarming:potato")
|
||||
food.support("potato","veggies","veggies:potato")
|
||||
food.support("potato","farming_plus","farming_plus:potato_item")
|
||||
food.support("tomato","farming_plus","farming_plus:tomato_item")
|
||||
food.support("tomato","plantlib","plantlib:tomato")
|
||||
food.support("carrot","farming_plus","farming_plus:carrot_item")
|
||||
food.support("carrot","docfarming","docfarming:carrot")
|
||||
food.support("carrot","plantlib","plantlib:carrot")
|
||||
food.support("carrot","jkfarming","jkfarming:carrot")
|
||||
food.support("cocoa","farming_plus","farming_plus:cocoa_bean")
|
||||
food.support("milk","animalmaterials","animalmaterials:milk")
|
||||
food.support("milk","my_mobs","my_mobs:milk_glass_cup")
|
||||
food.support("milk","jkanimals","jkanimals:bucket_milk")
|
||||
food.support("egg","animalmaterials","animalmaterials:egg")
|
||||
food.support("egg","animalmaterials","animalmaterials:egg_big")
|
||||
food.support("egg","jkanimals","jkanimals:egg")
|
||||
food.support("meat_raw","animalmaterials","animalmaterials:meat_raw")
|
||||
food.support("meat","mobs","mobs:meat")
|
||||
food.support("meat","jkanimals","jkanimals:meat")
|
||||
_meat("pork","mobfcooking","mobfcooking:cooked_pork")
|
||||
_meat("beef","mobfcooking","mobfcooking:cooked_beef")
|
||||
_meat("chicken","mobfcooking","mobfcooking:cooked_chicken")
|
||||
_meat("lamb","mobfcooking","mobfcooking:cooked_lamb")
|
||||
_meat("venison","mobfcooking","mobfcooking:cooked_venison")
|
||||
food.support("cup","vessels","vessels:drinking_glass")
|
||||
food.support("sugar","jkfarming","jkfarming:sugar")
|
||||
food.support("sugar","bushes_classic","bushes:sugar")
|
||||
|
||||
-- Default inbuilt ingredients
|
||||
food.asupport("wheat",function()
|
||||
minetest.register_craftitem("food:wheat", {
|
||||
description = S("Wheat"),
|
||||
inventory_image = "food_wheat.png",
|
||||
groups = {food_wheat=1}
|
||||
})
|
||||
|
||||
food.craft({
|
||||
output = "food:wheat",
|
||||
recipe = {
|
||||
{"default:dry_shrub"},
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("flour",function()
|
||||
minetest.register_craftitem("food:flour", {
|
||||
description = S("Flour"),
|
||||
inventory_image = "food_flour.png",
|
||||
groups = {food_flour = 1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:flour",
|
||||
recipe = {
|
||||
{"group:food_wheat"},
|
||||
{"group:food_wheat"}
|
||||
}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:flour",
|
||||
recipe = {
|
||||
{"default:sand"},
|
||||
{"default:sand"}
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("potato",function()
|
||||
minetest.register_craftitem("food:potato", {
|
||||
description = S("Potato"),
|
||||
inventory_image = "food_potato.png",
|
||||
groups = {food_potato = 1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:potato",
|
||||
recipe = {
|
||||
{"default:dirt"},
|
||||
{"default:apple"}
|
||||
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("tomato",function()
|
||||
minetest.register_craftitem("food:tomato", {
|
||||
description = S("Tomato"),
|
||||
inventory_image = "food_tomato.png",
|
||||
groups = {food_tomato = 1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:tomato",
|
||||
recipe = {
|
||||
{"", "default:desert_sand", ""},
|
||||
{"default:desert_sand", "", "default:desert_sand"},
|
||||
{"", "default:desert_sand", ""}
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("carrot",function()
|
||||
minetest.register_craftitem("food:carrot", {
|
||||
description = S("Carrot"),
|
||||
inventory_image = "food_carrot.png",
|
||||
groups = {food_carrot=1},
|
||||
on_use = food.item_eat(3)
|
||||
})
|
||||
food.craft({
|
||||
output = "food:carrot",
|
||||
recipe = {
|
||||
{"default:apple","default:apple","default:apple"},
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("milk",function()
|
||||
minetest.register_craftitem("food:milk", {
|
||||
description = S("Milk"),
|
||||
image = "food_milk.png",
|
||||
on_use = food.item_eat(1),
|
||||
groups = { eatable=1, food_milk = 1 },
|
||||
stack_max=10
|
||||
})
|
||||
food.craft({
|
||||
output = "food:milk",
|
||||
recipe = {
|
||||
{"default:sand"},
|
||||
{"bucket:bucket_water"}
|
||||
},
|
||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
|
||||
})
|
||||
end)
|
||||
food.asupport("egg",function()
|
||||
minetest.register_craftitem("food:egg",{
|
||||
description = S("Egg"),
|
||||
inventory_image = "food_egg.png",
|
||||
groups = {food_egg=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:egg",
|
||||
recipe = {
|
||||
{"", "default:sand", ""},
|
||||
{"default:sand", "", "default:sand"},
|
||||
{"", "default:sand", ""}
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("cocoa",function()
|
||||
minetest.register_craftitem("food:cocoa", {
|
||||
description = S("Cocoa Bean"),
|
||||
inventory_image = "food_cocoa.png",
|
||||
groups = {food_cocoa=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:cocoa",
|
||||
recipe = {
|
||||
{"","default:apple",""},
|
||||
{"default:apple","","default:apple"},
|
||||
{"","default:apple",""}
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("meat_raw",function()
|
||||
minetest.register_craftitem("food:meat_raw", {
|
||||
description = S("Raw meat"),
|
||||
image = "food_meat_raw.png",
|
||||
on_use = food.item_eat(1),
|
||||
groups = { meat=1, eatable=1, food_meat_raw=1 },
|
||||
stack_max=25
|
||||
})
|
||||
food.craft({
|
||||
output = "food:meat_raw",
|
||||
recipe = {
|
||||
{"default:apple"},
|
||||
{"default:dirt"}
|
||||
}
|
||||
})
|
||||
end)
|
||||
food.asupport("meat",function()
|
||||
minetest.register_craftitem("food:meat", {
|
||||
description = S("Venison"),
|
||||
inventory_image = "food_meat.png",
|
||||
groups = {food_meat=1,food_chicken=1}
|
||||
})
|
||||
|
||||
food.craft({
|
||||
type = "cooking",
|
||||
output = "food:meat",
|
||||
recipe = "group:food_meat_raw",
|
||||
cooktime = 30
|
||||
})
|
||||
end)
|
||||
food.asupport("sugar",function()
|
||||
minetest.register_craftitem("food:sugar", {
|
||||
description = S("Sugar"),
|
||||
inventory_image = "food_sugar.png",
|
||||
groups = {food_sugar=1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "food:sugar 20",
|
||||
recipe = {
|
||||
{"default:papyrus"},
|
||||
}
|
||||
})
|
||||
end)
|
||||
|
||||
if (minetest.get_modpath("animalmaterials") and not minetest.get_modpath("mobfcooking")) then
|
||||
food.craft({
|
||||
type = "cooking",
|
||||
output = "food:meat",
|
||||
recipe = "group:food_meat_raw",
|
||||
cooktime = 30
|
||||
})
|
||||
end
|
||||
|
||||
-- Register chocolate powder
|
||||
minetest.register_craftitem("food:chocolate_powder", {
|
||||
description = S("Chocolate Powder"),
|
||||
inventory_image = "food_chocolate_powder.png",
|
||||
groups = {food_choco_powder = 1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:chocolate_powder 16",
|
||||
recipe = {
|
||||
{"group:food_cocoa","group:food_cocoa","group:food_cocoa"},
|
||||
{"group:food_cocoa","group:food_cocoa","group:food_cocoa"},
|
||||
{"group:food_cocoa","group:food_cocoa","group:food_cocoa"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Register dark chocolate
|
||||
minetest.register_craftitem("food:dark_chocolate",{
|
||||
description = S("Dark Chocolate"),
|
||||
inventory_image = "food_dark_chocolate.png",
|
||||
on_use = food.item_eat(3),
|
||||
groups = {food_dark_chocolate=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:dark_chocolate",
|
||||
recipe = {
|
||||
{"group:food_cocoa","group:food_cocoa","group:food_cocoa"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Register milk chocolate
|
||||
minetest.register_craftitem("food:milk_chocolate",{
|
||||
description = S("Milk Chocolate"),
|
||||
inventory_image = "food_milk_chocolate.png",
|
||||
on_use = food.item_eat(3),
|
||||
groups = {food_milk_chocolate=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:milk_chocolate",
|
||||
recipe = {
|
||||
{"","group:food_milk",""},
|
||||
{"group:food_cocoa","group:food_cocoa","group:food_cocoa"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Register pasta
|
||||
minetest.register_craftitem("food:pasta",{
|
||||
description = S("Pasta"),
|
||||
inventory_image = "food_pasta.png",
|
||||
groups = {food_pasta=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:pasta 4",
|
||||
type = "shapeless",
|
||||
recipe = {"group:food_flour","group:food_egg","group:food_egg"}
|
||||
})
|
||||
|
||||
-- Register bowl
|
||||
minetest.register_craftitem("food:bowl",{
|
||||
description = S("Bowl"),
|
||||
inventory_image = "food_bowl.png",
|
||||
groups = {food_bowl=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:bowl",
|
||||
recipe = {
|
||||
{"default:clay_lump","","default:clay_lump"},
|
||||
{"","default:clay_lump",""}
|
||||
}
|
||||
})
|
||||
-- Register butter
|
||||
minetest.register_craftitem("food:butter", {
|
||||
description = S("Butter"),
|
||||
inventory_image = "food_butter.png",
|
||||
groups = {food_butter=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:butter",
|
||||
recipe = {
|
||||
{"group:food_milk","group:food_milk"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Register cheese
|
||||
minetest.register_craftitem("food:cheese", {
|
||||
description = S("Cheese"),
|
||||
inventory_image = "food_cheese.png",
|
||||
on_use = food.item_eat(4),
|
||||
groups = {food_cheese=1}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:cheese",
|
||||
recipe = {
|
||||
{"group:food_butter","group:food_butter"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Register baked potato
|
||||
minetest.register_craftitem("food:baked_potato", {
|
||||
description = S("Baked Potato"),
|
||||
inventory_image = "food_baked_potato.png",
|
||||
on_use = food.item_eat(6),
|
||||
})
|
||||
food.craft({
|
||||
type = "cooking",
|
||||
output = "food:baked_potato",
|
||||
recipe = "group:food_potato",
|
||||
})
|
||||
|
||||
-- Register pasta bake
|
||||
minetest.register_craftitem("food:pasta_bake",{
|
||||
description = S("Pasta Bake"),
|
||||
inventory_image = "food_pasta_bake.png",
|
||||
on_use = food.item_eat(4),
|
||||
groups = {food=3}
|
||||
})
|
||||
minetest.register_craftitem("food:pasta_bake_raw",{
|
||||
description = S("Raw Pasta Bake"),
|
||||
inventory_image = "food_pasta_bake_raw.png",
|
||||
})
|
||||
food.craft({
|
||||
output = "food:pasta_bake",
|
||||
type = "cooking",
|
||||
recipe = "food:pasta_bake_raw"
|
||||
})
|
||||
food.craft({
|
||||
output = "food:pasta_bake_raw",
|
||||
recipe = {
|
||||
{"group:food_cheese"},
|
||||
{"group:food_pasta"},
|
||||
{"group:food_bowl"}
|
||||
}
|
||||
})
|
||||
|
||||
-- Register Soups
|
||||
local soups = {
|
||||
{"tomato","tomato"},
|
||||
{"chicken","meat"}
|
||||
}
|
||||
for i=1, #soups do
|
||||
local flav = soups[i]
|
||||
minetest.register_craftitem("food:soup_"..flav[1],{
|
||||
description = S(flav[1].." Soup"),
|
||||
inventory_image = "food_soup_"..flav[1]..".png",
|
||||
on_use = food.item_eat(4),
|
||||
groups = {food=3}
|
||||
})
|
||||
minetest.register_craftitem("food:soup_"..flav[1].."_raw",{
|
||||
description = S("Uncooked ".. flav[1].." Soup"),
|
||||
inventory_image = "food_soup_"..flav[1].."_raw.png",
|
||||
|
||||
})
|
||||
food.craft({
|
||||
type = "cooking",
|
||||
output = "food:soup_"..flav[1],
|
||||
recipe = "food:soup_"..flav[1].."_raw",
|
||||
})
|
||||
food.craft({
|
||||
output = "food:soup_"..flav[1].."_raw",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"bucket:bucket_water", "group:food_"..flav[2], "bucket:bucket_water"},
|
||||
{"", "group:food_bowl", ""},
|
||||
},
|
||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"},{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||
})
|
||||
end
|
||||
|
||||
-- Juices
|
||||
local juices = {"apple","cactus"}
|
||||
for i=1, #juices do
|
||||
local flav = juices[i]
|
||||
minetest.register_craftitem("food:"..flav.."_juice", {
|
||||
description = S(flav.." Juice"),
|
||||
inventory_image = "food_"..flav.."_juice.png",
|
||||
on_use = food.item_eat(2),
|
||||
})
|
||||
|
||||
food.craft({
|
||||
output = "food:"..flav.."_juice 4",
|
||||
recipe = {
|
||||
{"","",""},
|
||||
{"","default:"..flav,""},
|
||||
{"","group:food_cup",""},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craftitem("food:rainbow_juice", {
|
||||
description = S("Rainbow Juice"),
|
||||
inventory_image = "food_rainbow_juice.png",
|
||||
on_use = food.item_eat(20),
|
||||
})
|
||||
|
||||
food.craft({
|
||||
output = "food:rainbow_juice 99",
|
||||
recipe = {
|
||||
{"","",""},
|
||||
{"","default:nyancat_rainbow",""},
|
||||
{"","group:food_cup",""},
|
||||
}
|
||||
})
|
||||
|
||||
-- Register cakes
|
||||
minetest.register_node("food:cake", {
|
||||
description = S("Cake"),
|
||||
on_use = food.item_eat(4),
|
||||
groups={food=3,crumbly=3},
|
||||
tiles = {
|
||||
"food_cake_texture.png",
|
||||
"food_cake_texture.png",
|
||||
"food_cake_texture_side.png",
|
||||
"food_cake_texture_side.png",
|
||||
"food_cake_texture_side.png",
|
||||
"food_cake_texture_side.png"
|
||||
},
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
drawtype="nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.250000,-0.500000,-0.296880,0.250000,-0.250000,0.312502}, --NodeBox 1
|
||||
{-0.309375,-0.500000,-0.250000,0.309375,-0.250000,0.250000}, --NodeBox 2
|
||||
{-0.250000,-0.250000,-0.250000,0.250000,-0.200000,0.250000}, --NodeBox 3
|
||||
}
|
||||
}
|
||||
})
|
||||
minetest.register_node("food:cake_choco", {
|
||||
description = S("Chocolate Cake"),
|
||||
on_use = food.item_eat(4),
|
||||
groups={food=3,crumbly=3},
|
||||
tiles = {
|
||||
"food_cake_choco_texture.png",
|
||||
"food_cake_choco_texture.png",
|
||||
"food_cake_choco_texture_side.png",
|
||||
"food_cake_choco_texture_side.png",
|
||||
"food_cake_choco_texture_side.png",
|
||||
"food_cake_choco_texture_side.png"
|
||||
},
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
drawtype="nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.250000,-0.500000,-0.296880,0.250000,-0.250000,0.312502}, --NodeBox 1
|
||||
{-0.309375,-0.500000,-0.250000,0.309375,-0.250000,0.250000}, --NodeBox 2
|
||||
{-0.250000,-0.250000,-0.250000,0.250000,-0.200000,0.250000}, --NodeBox 3
|
||||
}
|
||||
}
|
||||
})
|
||||
minetest.register_node("food:cake_carrot", {
|
||||
description = S("Carrot Cake"),
|
||||
on_use = food.item_eat(4),
|
||||
groups={food=3,crumbly=3},
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
tiles = {
|
||||
"food_cake_carrot_texture.png",
|
||||
"food_cake_carrot_texture.png",
|
||||
"food_cake_carrot_texture_side.png",
|
||||
"food_cake_carrot_texture_side.png",
|
||||
"food_cake_carrot_texture_side.png",
|
||||
"food_cake_carrot_texture_side.png"
|
||||
},
|
||||
drawtype="nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.250000,-0.500000,-0.296880,0.250000,-0.250000,0.312502}, --NodeBox 1
|
||||
{-0.309375,-0.500000,-0.250000,0.309375,-0.250000,0.250000}, --NodeBox 2
|
||||
{-0.250000,-0.250000,-0.250000,0.250000,-0.200000,0.250000}, --NodeBox 3
|
||||
}
|
||||
}
|
||||
})
|
||||
food.craft({
|
||||
type = "cooking",
|
||||
output = "food:cake",
|
||||
recipe = "food:cakemix_plain",
|
||||
cooktime = 10,
|
||||
})
|
||||
food.craft({
|
||||
type = "cooking",
|
||||
output = "food:cake_choco",
|
||||
recipe = "food:cakemix_choco",
|
||||
cooktime = 10,
|
||||
})
|
||||
food.craft({
|
||||
type = "cooking",
|
||||
output = "food:cake_carrot",
|
||||
recipe = "food:cakemix_carrot",
|
||||
cooktime = 10,
|
||||
})
|
||||
|
||||
-- Cake mix
|
||||
minetest.register_craftitem("food:cakemix_plain",{
|
||||
description = S("Cake Mix"),
|
||||
inventory_image = "food_cakemix_plain.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("food:cakemix_choco",{
|
||||
description = S("Chocolate Cake Mix"),
|
||||
inventory_image = "food_cakemix_choco.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("food:cakemix_carrot",{
|
||||
description = S("Carrot Cake Mix"),
|
||||
inventory_image = "food_cakemix_carrot.png",
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "food:cakemix_plain",
|
||||
recipe = {
|
||||
{"group:food_flour","group:food_sugar","group:food_egg"},
|
||||
}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:cakemix_choco",
|
||||
recipe = {
|
||||
{"","group:food_choco_powder",""},
|
||||
{"group:food_flour","group:food_sugar","group:food_egg"},
|
||||
}
|
||||
})
|
||||
food.craft({
|
||||
output = "food:cakemix_carrot",
|
||||
recipe = {
|
||||
{"","group:food_carrot",""},
|
||||
{"group:food_flour","group:food_sugar","group:food_egg"},
|
||||
}
|
||||
})
|
36
mods/food/locale/de.txt
Normal file
@ -0,0 +1,36 @@
|
||||
# Translation by Xanthin and hawkril
|
||||
|
||||
Wheat = Weizen
|
||||
Flour = Mehl
|
||||
Potato = Kartoffel
|
||||
Tomato = Tomate
|
||||
Carrot = Karotte
|
||||
Milk = Milch
|
||||
Egg = Ei
|
||||
Cocoa Bean = Kakaobohne
|
||||
Raw meat = rohes Fleisch
|
||||
Venison = Wildbret
|
||||
Sugar = Zucker
|
||||
Chocolate Powder = Schokoladenpulver
|
||||
Dark Chocolate = Dunkle Schokolade
|
||||
Milk Chocolate = Vollmilchschokolade
|
||||
Pasta = Nudeln
|
||||
Bowl = Schuessel
|
||||
Butter = Butter
|
||||
Cheese = Kaese
|
||||
Baked Potato = Ofenkartoffel
|
||||
Pasta Bake = Nudelauflauf
|
||||
Raw Pasta Bake = Ungekochter Nudelauflauf
|
||||
chicken Soup = Huehnersuppe
|
||||
tomato Soup = Tomatensuppe
|
||||
Uncooked tomato Soup = Ungekochte Tomatensuppe
|
||||
Uncooked chicken Soup = Ungekochte Huehnersuppe
|
||||
apple Juice = Apfelsaft
|
||||
cactus Juice = Kaktussaft
|
||||
Rainbow Juice = Regenbogensaft
|
||||
Cake = Kuchen
|
||||
Chocolate Cake = Schokoladenkuchen
|
||||
Carrot Cake = Karottenkuchen
|
||||
Cake Mix = Backmischung
|
||||
Chocolate Cake Mix = Backmischung fuer Schokoladenkuchen
|
||||
Carrot Cake Mix = Backmischung fuer Karottenkuchen
|
38
mods/food/locale/template.txt
Normal file
@ -0,0 +1,38 @@
|
||||
# template
|
||||
|
||||
Wheat =
|
||||
Flour =
|
||||
Potato =
|
||||
Tomato =
|
||||
Carrot =
|
||||
Milk =
|
||||
Egg =
|
||||
Cocoa Bean =
|
||||
Raw meat =
|
||||
Venison =
|
||||
Sugar =
|
||||
Chocolate Powder =
|
||||
Dark Chocolate =
|
||||
Milk Chocolate =
|
||||
Pasta =
|
||||
Bowl =
|
||||
Butter =
|
||||
Cheese =
|
||||
Baked Potato =
|
||||
Pasta Bake =
|
||||
Raw Pasta Bake =
|
||||
chicken Soup =
|
||||
tomato Soup =
|
||||
Uncooked tomato Soup =
|
||||
Uncooked chicken Soup =
|
||||
apple Juice =
|
||||
cactus Juice =
|
||||
Rainbow Juice =
|
||||
Cake =
|
||||
Chocolate Cake =
|
||||
Carrot Cake =
|
||||
Cheese cake =
|
||||
Cake Mix =
|
||||
Chocolate Cake Mix =
|
||||
Carrot Cake Mix =
|
||||
Cheese Cake Mix =
|
BIN
mods/food/textures/food_apple_juice.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
mods/food/textures/food_baked_potato.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
mods/food/textures/food_baking_bread_slice.png
Normal file
After Width: | Height: | Size: 437 B |
BIN
mods/food/textures/food_baking_bun_mix.png
Normal file
After Width: | Height: | Size: 474 B |
BIN
mods/food/textures/food_baking_dough.png
Normal file
After Width: | Height: | Size: 343 B |
BIN
mods/food/textures/food_bowl.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
mods/food/textures/food_butter.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
mods/food/textures/food_cactus_juice.png
Normal file
After Width: | Height: | Size: 867 B |
BIN
mods/food/textures/food_cake_carrot_texture.png
Normal file
After Width: | Height: | Size: 786 B |
BIN
mods/food/textures/food_cake_carrot_texture_side.png
Normal file
After Width: | Height: | Size: 780 B |
BIN
mods/food/textures/food_cake_choco_texture.png
Normal file
After Width: | Height: | Size: 712 B |
BIN
mods/food/textures/food_cake_choco_texture_side.png
Normal file
After Width: | Height: | Size: 709 B |
BIN
mods/food/textures/food_cake_texture.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
mods/food/textures/food_cake_texture_side.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
mods/food/textures/food_cakemix_carrot.png
Normal file
After Width: | Height: | Size: 335 B |
BIN
mods/food/textures/food_cakemix_choco.png
Normal file
After Width: | Height: | Size: 331 B |
BIN
mods/food/textures/food_cakemix_plain.png
Normal file
After Width: | Height: | Size: 327 B |
BIN
mods/food/textures/food_carrot.png
Normal file
After Width: | Height: | Size: 575 B |
BIN
mods/food/textures/food_cheese.png
Normal file
After Width: | Height: | Size: 487 B |
BIN
mods/food/textures/food_chocolate_powder.png
Normal file
After Width: | Height: | Size: 510 B |
BIN
mods/food/textures/food_cocoa.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
mods/food/textures/food_dark_chocolate.png
Normal file
After Width: | Height: | Size: 480 B |
BIN
mods/food/textures/food_egg.png
Normal file
After Width: | Height: | Size: 672 B |
BIN
mods/food/textures/food_flour.png
Normal file
After Width: | Height: | Size: 378 B |
BIN
mods/food/textures/food_meat.png
Normal file
After Width: | Height: | Size: 624 B |
BIN
mods/food/textures/food_meat_raw.png
Normal file
After Width: | Height: | Size: 426 B |
BIN
mods/food/textures/food_milk.png
Normal file
After Width: | Height: | Size: 559 B |
BIN
mods/food/textures/food_milk_chocolate.png
Normal file
After Width: | Height: | Size: 479 B |
BIN
mods/food/textures/food_pasta.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
mods/food/textures/food_pasta_bake.png
Normal file
After Width: | Height: | Size: 366 B |
BIN
mods/food/textures/food_pasta_bake_raw.png
Normal file
After Width: | Height: | Size: 324 B |
BIN
mods/food/textures/food_potato.png
Normal file
After Width: | Height: | Size: 252 B |
BIN
mods/food/textures/food_rainbow_juice.png
Normal file
After Width: | Height: | Size: 396 B |
BIN
mods/food/textures/food_soup_chicken.png
Normal file
After Width: | Height: | Size: 355 B |
BIN
mods/food/textures/food_soup_chicken_raw.png
Normal file
After Width: | Height: | Size: 325 B |
BIN
mods/food/textures/food_soup_tomato.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
mods/food/textures/food_soup_tomato_raw.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
mods/food/textures/food_strawberry.png
Normal file
After Width: | Height: | Size: 250 B |
BIN
mods/food/textures/food_sugar.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
mods/food/textures/food_tomato.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
mods/food/textures/food_wheat.png
Normal file
After Width: | Height: | Size: 566 B |