From e488cf549cdd02fa794053aa027324271e8d47ab Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Fri, 31 Aug 2012 18:43:10 +0100 Subject: [PATCH] More Stuff --- README.md | 29 ------------------- baking.lua | 39 ++++++++++++++++++++++++++ init.lua | 1 + sandwich.lua | 29 +++++++++++++++++++ textures/food_crumble_rhubarb.png | Bin 0 -> 523 bytes textures/food_crumble_rhubarb_raw.png | Bin 0 -> 500 bytes 6 files changed, 69 insertions(+), 29 deletions(-) delete mode 100644 README.md create mode 100644 sandwich.lua create mode 100644 textures/food_crumble_rhubarb.png create mode 100644 textures/food_crumble_rhubarb_raw.png diff --git a/README.md b/README.md deleted file mode 100644 index b7abf5e..0000000 --- a/README.md +++ /dev/null @@ -1,29 +0,0 @@ -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. - -License -======= -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. \ No newline at end of file diff --git a/baking.lua b/baking.lua index 3e12f92..d0c6aea 100644 --- a/baking.lua +++ b/baking.lua @@ -8,8 +8,47 @@ -- [regis-food] Bread -- ===================================== +print "RubenFood [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), +}) + +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:flour"','"food:rhubarb"','"food:butter"'} + } +}) + +minetest.register_craft({ + type = "cooking", + output = "food:crumble_rhubarb", + recipe = "food:crumble_rhubarb_raw", +}) + +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 "RubenFood [Master] - Loading Dough" -- doughs if not minetest.get_modpath("farming") then diff --git a/init.lua b/init.lua index 8753fea..a01a7e0 100644 --- a/init.lua +++ b/init.lua @@ -15,6 +15,7 @@ print ("food: Loading mainframe: [Master]") ----------------------Load Files----------------------------- dofile(minetest.get_modpath("food").."/support.lua") dofile(minetest.get_modpath("food").."/dairy.lua") +dofile(minetest.get_modpath("food").."/sandwich.lua") dofile(minetest.get_modpath("food").."/baking.lua") dofile(minetest.get_modpath("food").."/cakes.lua") diff --git a/sandwich.lua b/sandwich.lua new file mode 100644 index 0000000..08c4213 --- /dev/null +++ b/sandwich.lua @@ -0,0 +1,29 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ====================================== +-- >> rubenfood/sandwich.lua +-- adds sandwich +-- ====================================== +-- [regis-food] Cheese +-- [craft] Cheese +-- [regis-item] Butter +-- [craft] Butter +-- ====================================== + +print "RubenFood [Master] - Loading Sandwiches" + +minetest.register_craftitem("food:sw_meat", { + description = "Venison Sandwich", + inventory_image = "food_sw_meat.png", + on_use = minetest.item_eat(10), +}) + +minetest.register_craft({ + output = '"food:sw_meat" 1', + recipe = { + {"",'"food:bread_slice"',""}, + {"food:butter","",'"food:butter"'}, + {"",'"food:bread_slice"',""}, + } +}) diff --git a/textures/food_crumble_rhubarb.png b/textures/food_crumble_rhubarb.png new file mode 100644 index 0000000000000000000000000000000000000000..4b8811ea8a13e9bf4c631e31688d2e9d9cf7a508 GIT binary patch literal 523 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`K2;$RB|(Yh3I#>^X_+~x3MG{V zsS2qTnQ06R6}KLHtv%uMIEaBcSy@jwxR~46+t`>{!C<4wMiVaw5_$Qs7kmC(Bm$SelvY3H^?+6GpPSxg<1`4v5c>21s-{FuKFypK}@*x&1 ziU&OF--5C#{5LXFM$T`2DvM4h>ql94%{~0TwC?8m~C^fMpGe1wEBr`Xa z!Sp*nCs2kHBomyUR#Ki=l*$lW@E@d{8zktGS)81c2vl0cu>HW6exNW1NH{#PC@(WF zo#BA=vv!~uJ4AnJQF1E7*Zx+LgwK*2(zggAyLw`{g!}T=**5Zd5X4q`v zo;kr(xtaa!$pW)oi6`0;jxd?cp2+LWF2VL-v*c_E8-b0L%;FV5?KTRUeXOsRF&8l~ Y%s3FOn6-(CALv2`Pgg&ebxsLQ0OiQBcK`qY literal 0 HcmV?d00001 diff --git a/textures/food_crumble_rhubarb_raw.png b/textures/food_crumble_rhubarb_raw.png new file mode 100644 index 0000000000000000000000000000000000000000..5c1689e2829f39e4742c9241c93f7864d20dd127 GIT binary patch literal 500 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`K2;$RB|(Yh3I#>^X_+~x3MG{V zsS2qTnQ06R6}KLHtv%uMIEaBcSy@jwxR~46+t`>{!C<4wMiVaw5_$Qs7kmC(Bm$SelvY3H^?+6GpPSxg<1`4v5c>21s-{FuKFjMuHnX?Zp ziU&OF--5C#{5LXFM$T`2DvM4h>ql94%{~0TwC?8m~C^fMpGe1wEBr`Xa z!Sp*nCs2kHBomyUR#Ki=l*$lW@E@d{8zktGS)81c2vl0cu>HW6exNW1NH{#PC@(WF zo#BA=vv!~uJ4AnJQF1E7*ZdI47}zU!k4xYZ9a6gt>et7#Wm|eM(EtE58Lgg~8L+&t;ucLK6T)qoaoa literal 0 HcmV?d00001