Food 0.8 Prototype
18
README.md
|
@ -12,7 +12,7 @@ In alpha development, but is still ok to use.
|
|||
Food
|
||||
====
|
||||
|
||||
Recipes coming on beta release of this mod.
|
||||
Recipes coming on release of this mod.
|
||||
Read Code to find recipes before then
|
||||
|
||||
Items
|
||||
|
@ -34,6 +34,10 @@ Baking
|
|||
* Bread Slices
|
||||
* Buns
|
||||
|
||||
Soups
|
||||
* Tomato Soup
|
||||
* Chicken Soup
|
||||
|
||||
Cakes
|
||||
* Plain Cake
|
||||
* Chocolate Cake
|
||||
|
@ -50,6 +54,9 @@ Drinks
|
|||
* Cactus Juice
|
||||
* Coffee
|
||||
* Coffee Beans
|
||||
* Chocolate Milkshake
|
||||
* Banana Milkshake
|
||||
* Strawberry Milkshake
|
||||
|
||||
Misc
|
||||
* Cigerettes (takes 1 life away)
|
||||
|
@ -58,12 +65,11 @@ Misc
|
|||
|
||||
|
||||
|
||||
License for Code
|
||||
================
|
||||
License for Code and Images
|
||||
===========================
|
||||
|
||||
Copyright (c) 2012, Andrew "Rubenwardy" Ward
|
||||
All rights reserved.
|
||||
Copyright (c) 2012, Andrew "Rubenwardy" Ward All rights reserved.
|
||||
|
||||
CC BY NC SA 3.0 UNPORTED
|
||||
|
||||
http://creativecommons.org/licenses/by-nc-sa/3.0/
|
||||
http://creativecommons.org/licenses/by-nc-sa/3.0/
|
||||
|
|
90
README.md~
Normal file
|
@ -0,0 +1,90 @@
|
|||
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
|
||||
|
||||
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
|
||||
* Chocolate Milkshake
|
||||
* Banana Milkshake
|
||||
* Strawberry Milkshake
|
||||
|
||||
Misc
|
||||
* Cigerettes (takes 1 life away)
|
||||
* Cooked Meat
|
||||
* Sugar
|
||||
|
||||
|
||||
|
||||
License for Code
|
||||
================
|
||||
|
||||
Copyright (c) 2012, Andrew "Rubenwardy" Ward
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
3. This source code/software modified/unmodified must not be used for commercial use .
|
||||
4. The copyright owner has the right to change these conditions at anytime with/without notice.
|
||||
5. The copyright owner can issue an exception to these conditions by giving specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -14,4 +14,40 @@ 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 = {
|
||||
{"food:strawberry"},
|
||||
{"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 = {
|
||||
{"food:banana"},
|
||||
{"food:cup"},
|
||||
},
|
||||
})
|
||||
|
|
53
drinks/milkshakes.lua~
Normal file
|
@ -0,0 +1,53 @@
|
|||
-- RUBENFOOD MOD
|
||||
-- A mod written by rubenwardy that adds
|
||||
-- food to the minetest game
|
||||
-- =====================================
|
||||
-- >> rubenfood/drinks/milkshakes.lua
|
||||
-- adds drinks
|
||||
-- =====================================
|
||||
--
|
||||
-- =====================================
|
||||
|
||||
print ("RubenFood [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 = {
|
||||
{"food:strawberry"},
|
||||
{"food:cup"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("food:ms_banana", {
|
||||
description = "Banana 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"},
|
||||
},
|
||||
})
|
72
food/soup.lua
Normal file
|
@ -0,0 +1,72 @@
|
|||
-- 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"}}
|
||||
})
|
||||
|
||||
|
||||
----------------------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"}}
|
||||
})
|
41
food/soup.lua~
Normal file
|
@ -0,0 +1,41 @@
|
|||
-- 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"
|
||||
|
||||
|
||||
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"}}
|
||||
})
|
12
init.lua
|
@ -10,7 +10,7 @@
|
|||
-- [regis-food] Cigerette (-4)
|
||||
-- =====================================
|
||||
|
||||
print ("food: Loading mainframe: [Master]")
|
||||
print ("Food: Loading mainframe: [Master]")
|
||||
|
||||
----------------------Load Files-----------------------------
|
||||
dofile(minetest.get_modpath("food").."/support.lua")
|
||||
|
@ -20,6 +20,7 @@ dofile(minetest.get_modpath("food").."/dairy.lua")
|
|||
dofile(minetest.get_modpath("food").."/food/meats.lua")
|
||||
dofile(minetest.get_modpath("food").."/food/sandwich.lua")
|
||||
dofile(minetest.get_modpath("food").."/food/baking.lua")
|
||||
dofile(minetest.get_modpath("food").."/food/soup.lua")
|
||||
|
||||
dofile(minetest.get_modpath("food").."/snacks/crumbles.lua")
|
||||
dofile(minetest.get_modpath("food").."/snacks/cakes.lua")
|
||||
|
@ -59,6 +60,13 @@ minetest.register_craft({
|
|||
recipe = "food:clay_mug",
|
||||
})
|
||||
|
||||
-----------------------------Bowl-------------------------------
|
||||
|
||||
minetest.register_craftitem("food:bowl",{
|
||||
description = "Bowl",
|
||||
inventory_image = "food_bowl.png",
|
||||
})
|
||||
|
||||
|
||||
-----------------------------Sugar------------------------------
|
||||
minetest.register_craftitem("food:sugar", {
|
||||
|
@ -88,4 +96,4 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
print("food: Mainframe loaded")
|
||||
print("food: Mainframe loaded")
|
||||
|
|
|
@ -24,6 +24,29 @@ minetest.register_craftitem("food:banana_split", {
|
|||
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:wheat_seed"}},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "food:banana_split_raw",
|
||||
recipe = {{"food:chocolate_milk"},{"food:banana"}},
|
||||
|
|
59
snacks/misc.lua~
Normal file
|
@ -0,0 +1,59 @@
|
|||
-- 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:wheat_seed"}},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "food:banana_split_raw",
|
||||
recipe = {{"food:chocolate_milk"},{"food:banana"}},
|
||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "food:banana_split",
|
||||
recipe = "food:banana_split_raw",
|
||||
})
|
43
support.lua
|
@ -8,7 +8,7 @@
|
|||
-- [support]
|
||||
-- ======================================
|
||||
|
||||
print "RubenFood [Support] - Initialising"
|
||||
print "Food [Support] - Initialising"
|
||||
function node_implement(modname,n_ext,n_int,resultfunc)
|
||||
if not minetest.get_modpath(modname) then
|
||||
resultfunc()
|
||||
|
@ -23,7 +23,7 @@ end
|
|||
|
||||
|
||||
|
||||
print "RubenFood [Support] - Farming Mod"
|
||||
print "Food [Support] - Farming Mod"
|
||||
node_implement("farming","farming:flour","food:flour",function()
|
||||
minetest.register_craftitem("food:flour", {
|
||||
description = "Flour",
|
||||
|
@ -70,12 +70,12 @@ end)
|
|||
|
||||
|
||||
|
||||
print "RubenFood [Support] - Farming_Plus Mod"
|
||||
print "Food [Support] - Farming_Plus Mod"
|
||||
|
||||
node_implement("farming_plus","farming_plus:strawberry_item","food:strawberry",function()
|
||||
minetest.register_craftitem("food:strawberry", {
|
||||
description = "Strawberry",
|
||||
inventory_image = "fatrming_strawberry.png",
|
||||
inventory_image = "farming_strawberry.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
end)
|
||||
|
@ -118,11 +118,19 @@ minetest.register_node("food:banana", {
|
|||
})
|
||||
end)
|
||||
|
||||
node_implement("farming_plus","farming_plus:tomato_item","food:tomato",function()
|
||||
minetest.register_craftitem("food:tomato", {
|
||||
description = "Tomato",
|
||||
inventory_image = "farming_strawberry.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
end)
|
||||
|
||||
|
||||
|
||||
|
||||
print "RubenFood [Support] - Animal Mod"
|
||||
|
||||
print "Food [Support] - Animal Mod"
|
||||
|
||||
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
|
||||
minetest.register_craftitem("food:meat_raw", {
|
||||
|
@ -134,17 +142,6 @@ minetest.register_craftitem("food:meat_raw", {
|
|||
})
|
||||
end)
|
||||
|
||||
|
||||
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",
|
||||
})
|
||||
end)
|
||||
end)
|
||||
|
||||
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
||||
minetest.register_craftitem("food:egg", {
|
||||
description = "Egg",
|
||||
|
@ -163,6 +160,20 @@ node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
|
|||
})
|
||||
end)
|
||||
|
||||
print "Food [Support] - Vessels Mod"
|
||||
|
||||
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",
|
||||
})
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 297 B |
BIN
textures/food_bowl.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
textures/food_corn_pip.png
Normal file
After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 300 B |
BIN
textures/food_popcorn.png
Normal file
After Width: | Height: | Size: 368 B |
BIN
textures/food_soup_chicken _raw.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
textures/food_soup_chicken.png
Normal file
After Width: | Height: | Size: 355 B |
BIN
textures/food_soup_tomato.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
textures/food_soup_tomato_raw.png
Normal file
After Width: | Height: | Size: 321 B |