diff --git a/README.md b/README.md index bcbac88..15ef740 100644 --- a/README.md +++ b/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/ \ No newline at end of file +http://creativecommons.org/licenses/by-nc-sa/3.0/ diff --git a/README.md~ b/README.md~ new file mode 100644 index 0000000..f3cdcaa --- /dev/null +++ b/README.md~ @@ -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. diff --git a/drinks/milkshakes.lua b/drinks/milkshakes.lua index ffb8c56..e4c7846 100644 --- a/drinks/milkshakes.lua +++ b/drinks/milkshakes.lua @@ -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) -}) \ No newline at end of file +}) + +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"}, + }, +}) diff --git a/drinks/milkshakes.lua~ b/drinks/milkshakes.lua~ new file mode 100644 index 0000000..487f81b --- /dev/null +++ b/drinks/milkshakes.lua~ @@ -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"}, + }, +}) diff --git a/food/soup.lua b/food/soup.lua new file mode 100644 index 0000000..748e8e3 --- /dev/null +++ b/food/soup.lua @@ -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"}} +}) diff --git a/food/soup.lua~ b/food/soup.lua~ new file mode 100644 index 0000000..52997db --- /dev/null +++ b/food/soup.lua~ @@ -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"}} +}) diff --git a/init.lua b/init.lua index ea33011..07a7787 100644 --- a/init.lua +++ b/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") \ No newline at end of file +print("food: Mainframe loaded") diff --git a/snacks/misc.lua b/snacks/misc.lua index 9c33cfb..87f94c1 100644 --- a/snacks/misc.lua +++ b/snacks/misc.lua @@ -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"}}, diff --git a/snacks/misc.lua~ b/snacks/misc.lua~ new file mode 100644 index 0000000..87f94c1 --- /dev/null +++ b/snacks/misc.lua~ @@ -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", +}) diff --git a/support.lua b/support.lua index 5211f46..dea19ea 100644 --- a/support.lua +++ b/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) + + + diff --git a/textures/food_banana_split.png b/textures/food_banana_split.png index fdec0fb..0f85242 100644 Binary files a/textures/food_banana_split.png and b/textures/food_banana_split.png differ diff --git a/textures/food_banana_split_raw.png b/textures/food_banana_split_raw.png index 7585f7a..13de0bf 100644 Binary files a/textures/food_banana_split_raw.png and b/textures/food_banana_split_raw.png differ diff --git a/textures/food_bowl.png b/textures/food_bowl.png new file mode 100644 index 0000000..b1d2b09 Binary files /dev/null and b/textures/food_bowl.png differ diff --git a/textures/food_corn_pip.png b/textures/food_corn_pip.png new file mode 100644 index 0000000..bf2ac77 Binary files /dev/null and b/textures/food_corn_pip.png differ diff --git a/textures/food_ms_banana.png b/textures/food_ms_banana.png index 19e9310..a713064 100644 Binary files a/textures/food_ms_banana.png and b/textures/food_ms_banana.png differ diff --git a/textures/food_ms_chocolate.png b/textures/food_ms_chocolate.png index f7fbeec..65c3703 100644 Binary files a/textures/food_ms_chocolate.png and b/textures/food_ms_chocolate.png differ diff --git a/textures/food_ms_strawberry.png b/textures/food_ms_strawberry.png index 6c2cbb6..133f80d 100644 Binary files a/textures/food_ms_strawberry.png and b/textures/food_ms_strawberry.png differ diff --git a/textures/food_popcorn.png b/textures/food_popcorn.png new file mode 100644 index 0000000..473d661 Binary files /dev/null and b/textures/food_popcorn.png differ diff --git a/textures/food_soup_chicken _raw.png b/textures/food_soup_chicken _raw.png new file mode 100644 index 0000000..468c73f Binary files /dev/null and b/textures/food_soup_chicken _raw.png differ diff --git a/textures/food_soup_chicken.png b/textures/food_soup_chicken.png new file mode 100644 index 0000000..db9f10d Binary files /dev/null and b/textures/food_soup_chicken.png differ diff --git a/textures/food_soup_tomato.png b/textures/food_soup_tomato.png new file mode 100644 index 0000000..5cc23be Binary files /dev/null and b/textures/food_soup_tomato.png differ diff --git a/textures/food_soup_tomato_raw.png b/textures/food_soup_tomato_raw.png new file mode 100644 index 0000000..1eac22c Binary files /dev/null and b/textures/food_soup_tomato_raw.png differ