1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-09-27 13:50:18 +02:00

Transform in V2 form

This commit is contained in:
Zaraki98 2013-09-12 15:11:34 +02:00
parent 541fe3fafc
commit e60a99cdae
72 changed files with 947 additions and 1341 deletions

View File

@ -1,48 +0,0 @@
Recipes coming on release of this mod.
Read Code to find recipes before then
Items
* Cup / Glass
* Mug
* Oven
Diary
* Butter
* Cheese
Sandwiches
* Venison Sandwich
* Cheese Sandwich
* Burger
Baking
* Bread
* Bread Slices
* Buns
Cakes
* Plain Cake
* Chocolate Cake
* Carrot Cake
Tarts
* Strawberry Tart
- Chocolate Tart
Crumbles
* Rhubarb Crumble
Drinks
* Apple Juice
* Cactus Juice
* Coffee
* Coffee Beans
* Hot Chocolate
- Chocolate Milk Shake
- Banana Milk Shake
- Strawberry Milk Shake
Misc
* Cigerettes (takes 1 life away)
* Cooked Meat
* Sugar

113
README.md
View File

@ -1,76 +1,37 @@
Rubenwardy's Food Mod.
======================
This mod adds food for minetest and is an ideal companion for the Farming (by PilzAdam) and the Animal (by Sapier) Mods.
1) List of Food
2) License for Code
In alpha development, but is still ok to use.
Food
====
Recipes coming on release of this mod.
Read Code to find recipes before then
Items
* Cup / Glass
* Mug
* Oven
Diary
* Butter
* Cheese
Sandwiches
* Venison Sandwich
* Cheese Sandwich
* Burger
Baking
* Bread
* Bread Slices
* Buns
Soups
* Tomato Soup
* Chicken Soup
Cakes
* Plain Cake
* Chocolate Cake
* Carrot Cake
Tarts
* Strawberry Tart
Crumbles
* Rhubarb Crumble
Drinks
* Apple Juice
* Cactus Juice
* Coffee
* Coffee Beans
* Hot Chocolate
* Chocolate Milkshake
* Banana Milkshake
* Strawberry Milkshake
Misc
* Cigerettes (takes 1 life away)
* Cooked Meat
* Sugar
License for Code and Images
===========================
License Holder: Andrew "Rubenwardy" Ward.
CC BY SA 3.0 UNPORTED
http://creativecommons.org/licenses/by-sa/3.0/
The Food Mod
============
This is the main mod in the food mod collection.
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
-------------
Advanced documentation and a recipe guide is coming soon!
Other mods
----------
There are expansion mods avaliable. Just install them in a mod folder, and everything should be fine.
* Modern food (Needs updating)
* English food (Coming Soon)
* Asian food (Coming Soon)
Licensing
---------
This mod, its code, images and nodeboxes, are licensed under:
ANDREW "RUBENWARDY" WARD
Creative Commons BY-SA 3.0
(or similar)
http://creativecommons.org/licenses/by-sa/3.0/

View File

@ -1,99 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/diary.lua
-- adds diary products
-- ======================================
-- [regis-food] Cheese
-- [craft] Cheese
-- [regis-item] Butter
-- [craft] Butter
-- ======================================
minetest.register_craftitem("food:butter", {
description = "Butter",
inventory_image = "food_butter.png",
})
minetest.register_craftitem("food:cheese", {
description = "Cheese",
inventory_image = "food_cheese.png",
on_use = minetest.item_eat(4),
})
minetest.register_craft({
output = '"food:butter" 1',
recipe = {
{'"food:milk"','"food:milk"'},
}
})
minetest.register_craft({
output = '"food:cheese" 1',
recipe = {
{'"food:butter"','"food:butter"'},
}
})
--
--
-- CHOCOLATE
--
--
minetest.register_craftitem("food:chocolate_dark", {
description = "Dark Chocolate",
inventory_image = "food_choco_dark.png",
on_use = minetest.item_eat(2),
})
minetest.register_craftitem("food:chocolate_milk", {
description = "Milk Chocolate",
inventory_image = "food_choco_milk.png",
on_use = minetest.item_eat(3),
})
minetest.register_craftitem("food:chocolate_powder", {
description = "Chocolate Powder",
inventory_image = "food_choco_powder.png",
})
minetest.register_craft({
output = '"food:chocolate_dark" 1',
recipe = {
{'"food:cocoa"','"food:cocoa"','"food:cocoa"'},
}
})
minetest.register_craft({
output = '"food:chocolate_powder" 1',
recipe = {
{"food:cocoa","food:cocoa","food:cocoa"},
{"food:cocoa","food:cocoa","food:cocoa"},
{"food:cocoa","food:cocoa","food:cocoa"},
}
})
minetest.register_craft({
output = '"food:chocolate_milk" 1',
recipe = {
{"","food:milk",""},
{"food:cocoa","food:cocoa","food:cocoa"},
}
})
minetest.register_craft({
output = '"food:chocolate_milk" 1',
recipe = {
{"","food:milk","food:chocolate_dark"},
}
})

View File

@ -1 +1,11 @@
default
default
farming
farming_plus?
vessels
plantlib?
docfarming?
animalmaterials?
my_mobs?
hud?

View File

@ -1,78 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/hot.lua
-- adds hot drinks
-- =====================================
-- [regis-food] Coffee
-- [craft] Coffe
-- [regis-food] Hot Chocolate
-- [craft] Hot Chocolate
-- =====================================
print ("RubenFood [Master] - Loading Hot")
-----------------------------Coffee-----------------------------
minetest.register_craftitem("food:coffeebean",{
description = "Raw Coffee Bean",
tiles = {"food_coffee.png"},
inventory_image = "food_coffee.png",
})
minetest.register_craftitem("food:coffeebean_cooked",{
description = "Cooked Coffee Bean",
tiles = {"food_coffee_cooked.png"},
inventory_image = "food_coffee_cooked.png",
})
minetest.register_craftitem("food:coffee", {
description = "Coffee",
inventory_image = "food_coffee_cup.png",
on_use = minetest.item_eat(10),
})
minetest.register_craft({
output = '"food:coffeebean" 1',
recipe = {
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
}
})
minetest.register_craft({
output = '"food:coffee" 1',
recipe = {
{'""','"food:coffeebean_cooked"','""'},
{'""','"food:coffeebean_cooked"','""'},
{'""','"food:mug"','""'},
}
})
minetest.register_craft({
type = "cooking",
output = "food:coffeebean_cooked",
recipe = "food:coffeebean",
})
-------------------------Hot Chocolate--------------------------
minetest.register_craftitem("food:hotchoco", {
description = "Hot Chocolate",
inventory_image = "food_hotchoco.png",
on_use = minetest.item_eat(4),
})
minetest.register_craft({
output = '"food:hotchoco" 1 ',
recipe = {
{"food:chocolate_powder"},
{"food:milk"},
{"food:mug"},
},
})

View File

@ -1,68 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/juice.lua
-- adds juices
-- =====================================
-- [regis-food] Apple Juice
-- [craft] Cactus Juice
-- [regis-food] Cactus Juice
-- [craft] Cactus Juice
-- =====================================
print ("Food [Master] - Loading Juices")
--------------------------Apple Juice--------------------------
minetest.register_craftitem("food:apple_juice", {
description = "Apple Juice",
inventory_image = "food_juice_apple.png",
on_use = minetest.item_eat(2)
})
minetest.register_craft({
output = '"food:apple_juice" 4',
recipe = {
{"","",""},
{"","default:apple",""},
{"","food:cup",""},
}
})
----------------------cactus juice----------------------------
minetest.register_craftitem("food:cactus_juice", {
description = "Cactuz Juice",
inventory_image = "food_juice_cactus.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:cactus_juice" 4',
recipe = {
{'""','""','""'},
{'""','"default:cactus"','""'},
{'""','"food:cup"','""'},
}
})
--------------------------Apple Juice--------------------------
minetest.register_craftitem("food:rainbow_juice", {
description = "Nyan Rainbow Juice",
inventory_image = "food_juice_rainbow.png",
on_use = minetest.item_eat(50)
})
minetest.register_craft({
output = '"food:rainbow_juice" 99',
recipe = {
{"","",""},
{"","default:nyancat_rainbow",""},
{"","food:cup",""},
}
})

View File

@ -1,53 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/milkshakes.lua
-- adds drinks
-- =====================================
--
-- =====================================
print ("Food [Master] - Loading Milk Shakes")
minetest.register_craftitem("food:ms_chocolate", {
description = "Chocolate Milkshake",
inventory_image = "food_ms_chocolate.png",
on_use = minetest.item_eat(4)
})
minetest.register_craft({
output = "food:ms_chocolate",
recipe = {
{"food:chocolate_milk"},
{"food:cup"},
},
})
minetest.register_craftitem("food:ms_strawberry", {
description = "Strawberry Milkshake",
inventory_image = "food_ms_strawberry.png",
on_use = minetest.item_eat(4)
})
minetest.register_craft({
output = "food:ms_strawberry",
recipe = {
{"farming_plus:strawberry_item"},
{"food:cup"},
},
})
minetest.register_craftitem("food:ms_banana", {
description = "Banana Milkshake",
inventory_image = "food_ms_banana.png",
on_use = minetest.item_eat(4)
})
minetest.register_craft({
output = "food:ms_banana",
recipe = {
{"farming_plus:banana"},
{"food:cup"},
},
})

View File

@ -1,69 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/food/baking.lua
-- adds bread and pies
-- =====================================
-- [regis-food] Bread
-- [regis-food] Bread Slice
-- [craft] Bread Slice
-- [regis-food] Bun
-- [craft] Bun
-- [regis-item] Bun Dough
-- [craft] Bun Dough
-- =====================================
print "Food [Master] - Loading Bread"
-- doughs
if not minetest.get_modpath("farming") then
else
minetest.register_craftitem(":farming:cake_mix", {
description = "Dough",
inventory_image = "farming_cake_mix.png",
})
end
minetest.register_craft({
output = '"food:bread_slice" 10',
recipe = {
{'"food:bread"'},
}
})
minetest.register_craftitem("food:bread_slice", {
description = "Bread Slice",
inventory_image = "food_bread_slice.png",
on_use = minetest.item_eat(2),
})
print "Food [Master] - Loading Buns"
minetest.register_craftitem("food:bun_mix", {
description = "Bun Mix",
inventory_image = "food_bun_mix.png",
})
minetest.register_craftitem("food:bun", {
description = "Bun",
inventory_image = "food_bun.png",
on_use = minetest.item_eat(4),
groups={food=2},
})
minetest.register_craft({
type = "cooking",
output = "food:bun",
recipe = "food:bun_mix",
})
minetest.register_craft({
output = '"food:bun_mix" 5',
recipe = {
{"food:flour", "food:flour", "bucket:bucket_water"},
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
})

View File

@ -1,11 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/food/meats.lua
-- adds meat products
-- ======================================
-- Nothing here yet
-- ======================================

View File

@ -1,48 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/food/sandwich.lua
-- adds sandwich
-- ======================================
-- [regis-food] Cheese Sandwich
-- [craft] Cheese Sandwich
-- [regis-food] Venison Sandwich
-- [craft] Venison Sandwich
-- [regis-food] Burger
-- [craft] Burger
-- ======================================
print "Food [Master] - Loading Sandwiches"
minetest.register_craftitem("food:sw_meat", {
description = "Venison Sandwich",
inventory_image = "food_sw_meat.png",
on_use = minetest.item_eat(10),
groups={food=2},
})
minetest.register_craftitem("food:sw_cheese", {
description = "Cheese Sandwich",
inventory_image = "food_sw_cheese.png",
on_use = minetest.item_eat(8),
groups={food=2},
})
minetest.register_craft({
output = '"food:sw_meat" 1',
recipe = {
{"",'"food:bread_slice"',""},
{"food:butter","food:meat",'"food:butter"'},
{"",'"food:bread_slice"',""},
}
})
minetest.register_craft({
output = '"food:sw_cheese" 1',
recipe = {
{"",'"food:bread_slice"',""},
{"food:butter","food:cheese",'"food:butter"'},
{"",'"food:bread_slice"',""},
}
})

View File

@ -1,72 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/food/soup.lua
-- adds soup and stews
-- =====================================
--
-- =====================================
print "Food [Master] - Loading Soups and Stews"
----------------------Tomato-----------------------------
minetest.register_craftitem("food:soup_tomato", {
description = "Tomato Soup",
inventory_image = "food_soup_tomato.png",
on_use = minetest.item_eat(4),
groups={food=2},
})
minetest.register_craftitem("food:soup_tomato_raw", {
description = "Raw Tomato Soup",
inventory_image = "food_soup_tomato_raw.png",
groups={food=2},
})
minetest.register_craft({
type = "cooking",
output = "food:soup_tomato",
recipe = "food:soup_tomato_raw",
})
minetest.register_craft({
output = '"food:soup_tomato_raw" 1',
recipe = {
{"", "", ""},
{"bucket:bucket_water", "food:tomato", "bucket:bucket_water"},
{"", "food:bowl", ""},
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"},{"bucket:bucket_water", "bucket:bucket_empty"}}
})
----------------------Chicken-----------------------------
minetest.register_craftitem("food:soup_chicken", {
description = "Chicken Soup",
inventory_image = "food_soup_chicken.png",
on_use = minetest.item_eat(4),
groups={food=2},
})
minetest.register_craftitem("food:soup_chicken_raw", {
description = "Raw Chicken Soup",
inventory_image = "food_soup_chicken_raw.png",
groups={food=2},
})
minetest.register_craft({
type = "cooking",
output = "food:soup_chicken",
recipe = "food:soup_chicken_raw",
})
minetest.register_craft({
output = '"food:soup_chicken_raw" 1',
recipe = {
{"", "", ""},
{"bucket:bucket_water", "food:meat", "bucket:bucket_water"},
{"", "food:bowl", ""},
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"},{"bucket:bucket_water", "bucket:bucket_empty"}}
})

1020
init.lua

File diff suppressed because it is too large Load Diff

View File

@ -1,101 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/snacks/cakes.lua
-- adds cakes
-- =====================================
-- [regis-food] Plain Cake
-- [craft] Plain Cake
-- [regis-food] Chocolate Cake
-- [craft] Chocolate Cake
-- [regis-food] Carrot Cake
-- [craft] Chocolate Cake
-- =====================================
print("Food [Master] - Loading Cakes")
--------------------------Cakes-------------------------
minetest.register_craftitem("food:cakemix_plain",{
description = "Cake Mix",
inventory_image = "food_pastry.png",
})
minetest.register_craftitem("food:cakemix_choco",{
description = "Chocolate Cake Mix",
inventory_image = "food_pastry_choco.png",
})
minetest.register_craftitem("food:cakemix_carrot",{
description = "Carrot Cake Mix",
inventory_image = "food_pastry_carrot.png",
})
minetest.register_craft({
type = "cooking",
output = "food:cake",
recipe = "food:cakemix_plain",
cooktime = 10,
})
minetest.register_craft({
type = "cooking",
output = "food:cake_chocolate",
recipe = "food:cakemix_choco",
cooktime = 10,
})
minetest.register_craft({
type = "cooking",
output = "food:cake_carrot",
recipe = "food:cakemix_carrot",
cooktime = 10,
})
minetest.register_craftitem("food:cake", {
description = "Cake",
inventory_image = "food_cake.png",
on_use = minetest.item_eat(30),
groups={food=3},
})
minetest.register_craftitem("food:cake_chocolate", {
description = "Chocolate Cake",
inventory_image = "food_cake_choco.png",
on_use = minetest.item_eat(40),
groups={food=3},
})
minetest.register_craftitem("food:cake_carrot", {
description = "Carrot Cake",
inventory_image = "food_cake_carrot.png",
on_use = minetest.item_eat(40),
groups={food=3},
})
----------------------------- Cake Pastry ----------------------------
minetest.register_craft({
output = '"food:cakemix_plain" 1',
recipe = {
{'"food:flour"','"food:sugar"','"food:egg"'},
}
})
minetest.register_craft({
output = '"food:cakemix_choco" 1',
recipe = {
{'""','"food:chocolate_milk"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
}
})
minetest.register_craft({
output = '"food:cakemix_carrot" 1',
recipe = {
{'""','"food:carrot"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
}
})

View File

@ -1,37 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/snacks/crumbles.lua
-- adds crumbles
-- =====================================
-- [regis-food] Rhubarb Crumble
-- =====================================
print "Food [Master] - Loading Crumbles"
--Crumbles
minetest.register_craftitem("food:crumble_rhubarb", {
description = "Rhubarb Crumble",
inventory_image = "food_crumble_rhubarb.png",
on_use = minetest.item_eat(30),
groups={food=3},
})
minetest.register_craftitem("food:crumble_rhubarb_raw", {
description = "Raw Rhubarb Crumble",
inventory_image = "food_crumble_rhubarb_raw.png",
})
minetest.register_craft({
output = '"food:crumble_rhubarb_raw" 1',
recipe = {
{'"food:sugar"',"",""},
{'"food:flour"','"food:rhubarb"','"food:butter"'}
}
})
minetest.register_craft({
type = "cooking",
output = "food:crumble_rhubarb",
recipe = "food:crumble_rhubarb_raw",
})

View File

@ -1,58 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/snacks/crumbles.lua
-- adds crumbles
-- =====================================
-- [regis-food] Rhubarb Crumble
-- =====================================
print "Food [Master] - Loading Splits"
-- Banana Split
minetest.register_craftitem("food:banana_split_raw", {
description = "Banana Split Raw",
inventory_image = "food_banana_split_raw.png",
})
minetest.register_craftitem("food:banana_split", {
description = "Banana Split",
inventory_image = "food_banana_split.png",
groups={food=1},
on_use = minetest.item_eat(3),
})
minetest.register_craftitem("food:popcorn", {
description = "Popcorn",
inventory_image = "food_popcorn.png",
groups={food=1},
on_use = minetest.item_eat(1),
})
minetest.register_craftitem("food:corn_seed", {
description = "Corn Pips",
inventory_image = "food_corn_pip.png",
})
minetest.register_craft({
type = "cooking",
output = "food:popcorn",
recipe = "food:corn_seed",
})
minetest.register_craft({
output = "food:corn_seed",
recipe = {{"farming:seed_wheat"}},
})
minetest.register_craft({
output = "food:banana_split_raw",
recipe = {{"food:chocolate_milk"},{"farming_plus:banana"}},
})
minetest.register_craft({
type = "cooking",
output = "food:banana_split",
recipe = "food:banana_split_raw",
})

View File

@ -1,53 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/snacks/tarts.lua
-- adds diary products
-- ======================================
-- [regis-food] Strawberry Tart
-- ======================================
print "Food [Master] - Loading Tarts"
minetest.register_craftitem("food:tart_strawberry", {
description = "Strawberry Tart",
inventory_image = "food_tart_strawberry.png",
on_use = minetest.item_eat(30),
groups={food=3},
})
minetest.register_craftitem("food:tart_base", {
description = "Tart Base",
inventory_image = "food_tart_base.png",
})
minetest.register_craftitem("food:tart_base_raw", {
description = "Raw Tart Base",
inventory_image = "food_tart_base_raw.png",
})
minetest.register_craft({
type = "cooking",
output = "food:tart_base",
recipe = "food:tart_base_raw",
})
minetest.register_craft({
output = '"food:tart_strawberry" 1',
recipe = {
{'"food:strawberry"'},{'"food:tart_base"'},
}
})
minetest.register_craft({
output = '"food:tart_base_raw" 1',
recipe = {
{'"food:flour"','"food:milk"','"food:egg"'},
}
})

View File

@ -1,348 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/support.lua
-- adds support for other mods
-- ======================================
-- [support]
-- ======================================
print "Food [Support] - Initialising"
--NODE_IMPLEMENT() Gets an item from another mod softly
-- modname: the name of the mod that the item will be got from
-- n_ext: the name of the item that we want to get
-- n_int: the name we want to save the item so we can load it as an ingredient
-- resultfunc: if the mod does not exist, then do this function
function node_implement(modname,n_ext,n_int,resultfunc)
if not minetest.get_modpath(modname) then
-- Mod is NOT installed
resultfunc()
else
-- Mod IS installed
minetest.register_alias(n_int,n_ext)
end
end
print "Food [Support] - Vegetables and Fruit"
print "Food [Support] - > Bread and Flour"
node_implement("farming","farming:flour","food:flour",function()
node_implement("plantlib","plantlib:wheat","food:wheat",function()
minetest.register_craft({
output = '"food:wheat" 1',
recipe = {
{"default:dry_shrub"},
}
})
end)
minetest.register_craftitem("food:flour", {
description = "Flour",
inventory_image = "farming_flour.png",
})
minetest.register_craft({
output = '"food:flour" 1',
recipe = {
{"food:wheat"},
}
})
end)
node_implement("farming","farming:bread","food:bread",function()
minetest.register_craftitem("food:bread", {
description = "Bread",
inventory_image = "food_bread.png",
stack_max = 1,
on_use = minetest.item_eat(10),
groups={food=2},
})
minetest.register_craft({
type = "cooking",
output = "food:bread",
recipe = "food:dough",
cooktime = 10,
})
end)
node_implement("farming","farming:cake_mix","food:dough",function()
minetest.register_craftitem("food:dough", {
description = "Cake Mix",
inventory_image = "farming_cake_mix.png",
})
minetest.register_craft({
output = "food:dough",
type = "shapeless",
recipe = {"food:flour", "food:flour", "food:flour", "food:flour", "bucket:bucket_water"},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
})
end)
print "Food [Support] - > Strawberry"
node_implement("farming_plus","farming_plus:strawberry_item","food:strawberry",function()
node_implement("plantlib","plantlib:strawberry","food:strawberry",function()
minetest.register_craftitem("food:strawberry", {
description = "Strawberry",
inventory_image = "farming_strawberry.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:strawberry" 1',
recipe = {
{"default:apple"},
}
})
end)
end)
print "Food [Support] - > Carrot"
node_implement("farming_plus","farming_plus:carrot_item","food:carrot",function()
node_implement("docfarming","docfarming:carrot","food:carrot",function()
node_implement("plantlib","plantlib:carrot","food:carrot",function()
minetest.register_craftitem("food:carrot", {
description = "Carrot",
inventory_image = "farming_carrot.png",
on_use = minetest.item_eat(3),
})
minetest.register_craft({
output = '"food:carrot" 1',
recipe = {
{"default:apple","default:apple","default:apple"},
}
})
end)
end)
end)
print "Food [Support] - > Rhubarb"
node_implement("farming_plus","farming_plus:rhubarb_item","food:rhubarb",function()
minetest.register_craftitem("food:rhubarb", {
description = "Rhubarb",
inventory_image = "farming_rhubarb.png",
})
minetest.register_craft({
output = '"food:rhubarb" 1',
recipe = {
{"default:apple"},
{"default:apple"},
{"default:apple"}
}
})
end)
print "Food [Support] - > Cocoa Bean"
node_implement("farming_plus","farming_plus:cocoa_bean","food:cocoa",function()
minetest.register_craftitem("food:cocoa", {
description = "Cocoa Bean",
inventory_image = "farming_cocoa_bean.png",
})
minetest.register_craft({
output = '"food:cocoa" 1',
recipe = {
{"","default:apple",""},
{"default:apple","","default:apple"},
{"","default:apple",""}
}
})
end)
print "Food [Support] - > Banana"
node_implement("farming_plus","farming_plus:banana","food:banana",function()
minetest.register_node("food:banana", {
description = "Banana",
tiles = {"farming_banana.png"},
inventory_image = "farming_banana.png",
wield_image = "farming_banana.png",
drawtype = "torchlike",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
sounds = default.node_sound_defaults(),
on_use = minetest.item_eat(6),
})
minetest.register_craft({
output = '"food:banana" 1',
recipe = {
{"default:apple"},
{"default:apple"}
}
})
end)
print "Food [Support] - > Tomato"
node_implement("farming_plus","farming_plus:tomato_item","food:tomato",function()
node_implement("plantlib","plantlib:tomato","food:tomato",function()
minetest.register_craftitem("food:tomato", {
description = "Tomato",
inventory_image = "farming_strawberry.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:rhubarb" 1',
recipe = {
{""},
{""},
{"default:apple"}
}
})
end)
end)
print "Food [Support] - > Potato"
node_implement("docfarming","docfarming:potato","food:potato",function()
minetest.register_craftitem("food:potato", {
description = "Potato",
inventory_image = "food_potato.png",
})
minetest.register_craft({
output = '"food:rhubarb" 1',
recipe = {
{"default:apple"},
{"default:dirt"}
}
})
end)
node_implement("docfarming","docfarming:bakedpotato","food:potato_baked",function()
minetest.register_craftitem("food:potato_baked", {
description = "Baked Potato",
inventory_image = "food_baked_potato.png",
on_use = minetest.item_eat(6),
})
minetest.register_craft({
type = "cooking",
output = "food:potato_baked",
recipe = "food:potato",
cooktime = 2,
})
end)
print "Food [Support] - > Coffee"
node_implement("plantlib","plantlib:coffee","food:coffeebean",function()
minetest.register_craftitem("food:coffeebean",{
description = "Raw Coffee Bean",
tiles = {"food_coffee.png"},
inventory_image = "food_coffee.png",
})
minetest.register_craft({
output = '"food:coffeebean" 1',
recipe = {
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
}
})
end)
print "Food [Support] - Meats and Animal Produce"
print "Food [Support] - > Raw Meat"
node_implement("mobs","mobs:meat_raw","food:meat_raw",function()
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
minetest.register_craftitem("food:meat_raw", {
description = "Raw meat",
image = "animalmaterials_meat_raw.png",
on_use = minetest.item_eat(1),
groups = { meat=1, eatable=1 },
stack_max=25
})
minetest.register_craft({
output = '"food:meat_raw" 1',
recipe = {
{"default:apple"},
{"default:dirt"}
}
})
end)
end)
print "Food [Support] - > Meat"
node_implement("mobs","mobs:meat","food:meat",function()
minetest.register_craftitem("food:meat", {
description = "Venison",
inventory_image = "food_meat.png",
})
minetest.register_craft({
type = "cooking",
output = "food:meat",
recipe = "food:meat_raw",
cooktime = 30
})
end)
print "Food [Support] - > Egg"
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
minetest.register_craftitem("food:egg", {
description = "Egg",
image = "animalmaterials_egg.png",
stack_max=10
})
minetest.register_craft({
output = '"food:egg" 1',
recipe = {
{"default:sand"},
{"default:apple"}
}
})
end)
print "Food [Support] - > Milk"
node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
node_implement("my_mobs","my_mobs:milk_glass_cup","food:milk",function()
minetest.register_craftitem("food:milk", {
description = "Milk",
image = "animalmaterials_milk.png",
on_use = minetest.item_eat(1),
groups = { eatable=1 },
stack_max=10
})
minetest.register_craft({
output = '"food:meat_raw" 1',
recipe = {
{"default:apple"},
{"bucket:bucket_water"}
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
})
end)
end)
print "Food [Support] - Vessels and Cutlery"
node_implement("vessels","vessels:drinking_glass","food:cup",function()
node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
minetest.register_craftitem("food:cup",{
description = "Glass",
tiles = {"food_cup.png"},
inventory_image = "food_cup.png",
})
minetest.register_craft({
output = '"food:cup" 1',
recipe = {
{"default:glass"},
{"default:glass"}
}
})
end)
end)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

View File

Before

Width:  |  Height:  |  Size: 474 B

After

Width:  |  Height:  |  Size: 474 B

View File

Before

Width:  |  Height:  |  Size: 343 B

After

Width:  |  Height:  |  Size: 343 B

View File

Before

Width:  |  Height:  |  Size: 515 B

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

View File

Before

Width:  |  Height:  |  Size: 575 B

After

Width:  |  Height:  |  Size: 575 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 518 B

After

Width:  |  Height:  |  Size: 487 B

View File

Before

Width:  |  Height:  |  Size: 510 B

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 B

View File

Before

Width:  |  Height:  |  Size: 184 B

After

Width:  |  Height:  |  Size: 184 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 564 B

View File

Before

Width:  |  Height:  |  Size: 480 B

After

Width:  |  Height:  |  Size: 480 B

View File

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

BIN
textures/food_flour.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 867 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 B

View File

Before

Width:  |  Height:  |  Size: 426 B

After

Width:  |  Height:  |  Size: 426 B

View File

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

View File

Before

Width:  |  Height:  |  Size: 479 B

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 B

BIN
textures/food_pasta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 325 B

View File

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 250 B

BIN
textures/food_tomato.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

BIN
textures/food_wheat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B