From 8170889df8a1fb6e748fb44033b613dab484728b Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Tue, 2 Oct 2012 17:58:50 +0100 Subject: [PATCH] Added Banana Splits Popcorn next... --- depends.txt | 3 +-- init.lua | 1 + snacks/misc.lua | 36 +++++++++++++++++++++++++++++ support.lua | 16 +++++++++++++ textures/farming_banana.png | Bin 0 -> 515 bytes textures/food_banana_split.png | Bin 0 -> 273 bytes textures/food_banana_split_raw.png | Bin 0 -> 285 bytes 7 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 snacks/misc.lua create mode 100644 textures/farming_banana.png create mode 100644 textures/food_banana_split.png create mode 100644 textures/food_banana_split_raw.png diff --git a/depends.txt b/depends.txt index a916278..331d858 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1 @@ -default -bucket \ No newline at end of file +default \ No newline at end of file diff --git a/init.lua b/init.lua index fb5bc88..ea33011 100644 --- a/init.lua +++ b/init.lua @@ -24,6 +24,7 @@ dofile(minetest.get_modpath("food").."/food/baking.lua") dofile(minetest.get_modpath("food").."/snacks/crumbles.lua") dofile(minetest.get_modpath("food").."/snacks/cakes.lua") dofile(minetest.get_modpath("food").."/snacks/tarts.lua") +dofile(minetest.get_modpath("food").."/snacks/misc.lua") dofile(minetest.get_modpath("food").."/drinks/juice.lua") dofile(minetest.get_modpath("food").."/drinks/hot.lua") diff --git a/snacks/misc.lua b/snacks/misc.lua new file mode 100644 index 0000000..9c33cfb --- /dev/null +++ b/snacks/misc.lua @@ -0,0 +1,36 @@ +-- 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_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 4f3e095..8ad064d 100644 --- a/support.lua +++ b/support.lua @@ -102,6 +102,22 @@ minetest.register_craftitem("food:cocoa", { }) end) +node_implement("farming_plus","farming_plus:banana","food:banana",function() +mminetest.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), +}) +end) + diff --git a/textures/farming_banana.png b/textures/farming_banana.png new file mode 100644 index 0000000000000000000000000000000000000000..f775e14cd96d00ee04e28ff5ed0080e56036f673 GIT binary patch literal 515 zcmV+e0{s1nP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01m_e01m_fl`9S#00007bV*G`2iyoB z5CbCwPWwFo00DzZL_t(I%cYXdD@0Kkho5urU}hsb*(eKkV`D2j zd;i8PZIot3N!h3=+fjG0n1#r3XE=bYbj-rn;FDJ4$pY-<&l z({ONckmdatic^587CLtf2!@US0g5G@4Dn!NfY+Nup@ZR`4vyAG{si!tDhiDSz~p!w z`Fw@BIq}=+%ZJAdHV*|rf0sr&p5i=t!tL%DPdhUe!^v$QrYccnrnKh*@YFZ+VnO=+ zf`%52+|D!~o;T_=ANP01sOAl}o#Q!uOE8>bzRd%G*KeSB{YHs4w`9v?UPvo@jVqTY z6J5cbkK%gIku(g__gNOETFU=ID4-KQO~|1>jn1ZCA{To?sj{h772ZFqv4lX=+hxLt z0f^$mKUD7T(s(i9=qiHV-63o0o2b)#JYKGmipTg4^C4Qxdk_lf#iayLtv8e^8-W{3 z2mrFwic$YzWs$xi747o+4e=`zLjk>XU`dtX*{CRY?+bQ;r%1TN|Ahbm002ovPDHLk FV1iwP-J}2j literal 0 HcmV?d00001 diff --git a/textures/food_banana_split.png b/textures/food_banana_split.png new file mode 100644 index 0000000000000000000000000000000000000000..fdec0fb5ddff01b0d07959c4db935c56d761173a GIT binary patch literal 273 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sDEfH31!Z9ZwBAX}2Ry9>jA5L~c#`DCC7dx@v7EBhS|c>!i+ z7Qf%NK%quY7sn6_|KvaXEIc9%YFuBMw)ROG2qbP;c#2K+kw;%^{+Sgg+ftZa{+)bO z*0^^Y*Wq=qI3`^Z>*D@3YteyO8zq^9m=hC~O+~mPF05tNtf+n`7Gv1ayN)xGUwPY^ zlCoUc8v;3P((LAf;@k?+iDt^1FY+FJ#WX=_g7yT)U1tp}88U3O@3_3ry##a&gQu&X J%Q~loCIGf2R_Fi# literal 0 HcmV?d00001 diff --git a/textures/food_banana_split_raw.png b/textures/food_banana_split_raw.png new file mode 100644 index 0000000000000000000000000000000000000000..7585f7a9ce5ffeea7336eda0c30d2c36a41a11ec GIT binary patch literal 285 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sDEfH31!Z9ZwBAX}2Ry9>jA5L~c#`DCC7dx@v7EBhS|c>!i+ z7Qf%NK%rhw7sn6_|KvaXEIc9%YFuBMw)ROG2qbP;c#2K+kw;%^{+Sgg+ftZa{+)bO z*0^^Y*Wq=qI3`^Z>*8+OJHN>^*_cIz?a-c6%L{fN2yqr#$FStb;im~3mVHleF4)y2 z7@cNi=imA8bF49suflEJ$?pWkxfPBYJXhL$(f8;prU^gTe~DWM4f{fJ{+ literal 0 HcmV?d00001