From d9cb90c0be5c71973fdbb2e557d84292e4d4832a Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sun, 16 Nov 2014 09:06:29 +0000 Subject: [PATCH 1/2] Add orange juice --- init.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 0bbf436..bb0cef6 100644 --- a/init.lua +++ b/init.lua @@ -125,9 +125,13 @@ for i=1, #soups do end -- Juices -local juices = {"apple","cactus"} -for i=1, #juices do - local flav = juices[i] +local juices = {apple = "default:apple", + cactus = "default:cactus"} +if minetest.get_modpath("farming_plus") then + juices["orange"] = "farming_plus:orange_item" +end + +for flav, item in pairs(juices) do food.module(flav.."_juice", function() minetest.register_craftitem("food:"..flav.."_juice", { description = S(flav.." Juice"), @@ -138,7 +142,7 @@ for i=1, #juices do output = "food:"..flav.."_juice 4", recipe = { {"","",""}, - {"","default:"..flav,""}, + {"",item,""}, {"","group:food_cup",""}, } }) From 7307477998f4d81c96e63b307afda077d5e6fbb5 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sun, 16 Nov 2014 09:10:11 +0000 Subject: [PATCH 2/2] Add orange juice texture --- textures/food_orange_juice.png | Bin 0 -> 620 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 textures/food_orange_juice.png diff --git a/textures/food_orange_juice.png b/textures/food_orange_juice.png new file mode 100644 index 0000000000000000000000000000000000000000..62834ab2a694190069e2cf4c3fceb53bbc8836cd GIT binary patch literal 620 zcmV-y0+aoTP)2J01&%GLirQ0r^Qp zK~y-)jZ-~OR6!IycV^zlE)Vwu*Ih$Ik%*dD8KR}JvLq%H#KOjy7&{V6|A1K0TN@Mk z6BHI`Vqpv#3)e(s)fLx;Wm(>PGsj}VkYyin%DLy9JLldrLK0a=LfbJPd85B8U;nU+APe?Az&P=U}(s|KZ=;#A@ zxN>j$2wn|dtku`&02tcjy6bg>u5VG4pgLB%bF9FKuWLq%-%T9s#(vJU^LEl>;V!e)#)MyTgWPts}lSHdw3GWURtyZQ(>5 z$Fa?oPv<~~q}6bxoK{2ENYWZ5_}J{Bddi~NY@#}T#@CLZO#r~XUEgB6XS0)72sI{( zz7_51N~Hp(37`zz?iO7V%Y|})La4L15NJWph=2|dB`%G{cH5%!1!YFdu%yyTAR@s~ z0pBQeV)sjoCw6<&GEHcrBA^V!1X9fVwEbL!Lj}IH_T=UJR&}TO&8jd`B7%b;fsTtS z8?xC=g=9PPGXcQGlOccZq=>CUA<$^`EF6K@(j%E3#{LCV%L67qDJmTR0000