From 805bf35c176e1a8881996fada0016ec29bfafcd0 Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Sat, 1 Sep 2012 19:17:55 +0100 Subject: [PATCH] Added Buns, burgers, and cleared up graphics --- README.md | 2 ++ baking.lua | 65 ++++++++++++++++++------------------ crumbles.lua | 36 ++++++++++++++++++++ drinks.lua | 24 ------------- fruits.lua | 25 ++++++++++++++ init.lua | 11 ++---- sandwich.lua | 9 +++++ textures/food_bun.png | Bin 0 -> 457 bytes textures/food_bun_mix.png | Bin 0 -> 474 bytes textures/food_sw_cheese.png | Bin 580 -> 545 bytes 10 files changed, 107 insertions(+), 65 deletions(-) create mode 100644 crumbles.lua create mode 100644 fruits.lua create mode 100644 textures/food_bun.png create mode 100644 textures/food_bun_mix.png diff --git a/README.md b/README.md index 32c0f3a..260ef15 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,12 @@ Diary Sandwiches * Venison Sandwich * Cheese Sandwich +* Burger Baking * Bread * Bread Slices +* Buns Cakes * Plain Cake diff --git a/baking.lua b/baking.lua index 850c28e..41b8eb6 100644 --- a/baking.lua +++ b/baking.lua @@ -8,32 +8,16 @@ -- [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), -}) +print "RubenFood [Master] - Loading Bread" +-- doughs +if not minetest.get_modpath("farming") then -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:sugar"',"",""}, - {'"food:flour"','"food:rhubarb"','"food:butter"'} - } -}) - -minetest.register_craft({ - type = "cooking", - output = "food:crumble_rhubarb", - recipe = "food:crumble_rhubarb_raw", +else +minetest.register_craftitem(":farming:cake_mix", { + description = "Dough", + inventory_image = "farming_cake_mix.png", }) +end minetest.register_craft({ output = '"food:bread_slice" 10', @@ -49,13 +33,30 @@ minetest.register_craftitem("food:bread_slice", { }) -print "RubenFood [Master] - Loading Dough" --- doughs -if not minetest.get_modpath("farming") then -else -minetest.register_craftitem(":farming:cake_mix", { - description = "Dough", - inventory_image = "farming_cake_mix.png", + +print "RubenFood [Master] - Loading Buns" +minetest.register_craftitem("food:bun_mix", { + description = "Bun Mix", + inventory_image = "food_bun_mix.png", }) -end \ No newline at end of file + +minetest.register_craftitem("food:bun", { + description = "Bun", + inventory_image = "food_bun.png", + on_use = minetest.item_eat(4), +}) + +minetest.register_craft({ + type = "cooking", + output = "food:bun", + recipe = "food:bun_mix", +}) + +minetest.register_craft({ + output = '"food:bun_mix" 5', + recipe = { + {"food:flour", "food:flour", "bucket:bucket_water"}, + }, + replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} +}) \ No newline at end of file diff --git a/crumbles.lua b/crumbles.lua new file mode 100644 index 0000000..402140c --- /dev/null +++ b/crumbles.lua @@ -0,0 +1,36 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/crumbles.lua +-- adds crumbles +-- ===================================== +-- [regis-food] Rhubarb Crumble +-- ===================================== + +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:sugar"',"",""}, + {'"food:flour"','"food:rhubarb"','"food:butter"'} + } +}) + +minetest.register_craft({ + type = "cooking", + output = "food:crumble_rhubarb", + recipe = "food:crumble_rhubarb_raw", +}) \ No newline at end of file diff --git a/drinks.lua b/drinks.lua index b518263..e689b0d 100644 --- a/drinks.lua +++ b/drinks.lua @@ -16,16 +16,8 @@ print ("RubenFood [Master] - Loading Juices") --------------------------Apple Juice-------------------------- minetest.register_node("food:apple_juice", { description = "Apple Juice", - - visual_scale = 1.0, - tiles = {"food_juice_apple.png"}, inventory_image = "food_juice_apple.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, on_use = minetest.item_eat(2), - sounds = default.node_sound_defaults(), }) minetest.register_craft({ @@ -44,16 +36,8 @@ minetest.register_craft({ ----------------------cactus juice---------------------------- minetest.register_node(":food:cactus_juice", { description = "Cactuz Juice", - - visual_scale = 1.0, - tiles = {"food_juice_cactus.png"}, inventory_image = "food_juice_cactus.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, on_use = minetest.item_eat(2), - sounds = default.node_sound_defaults(), }) minetest.register_craft({ @@ -90,16 +74,8 @@ minetest.register_craftitem(":food:coffeebean_cooked",{ minetest.register_node(":food:coffee", { description = "Coffee", - - visual_scale = 1.0, - tiles = {"food_coffee_cup.png"}, inventory_image = "food_coffee_cup.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, on_use = minetest.item_eat(10), - sounds = default.node_sound_defaults(), }) minetest.register_craft({ diff --git a/fruits.lua b/fruits.lua new file mode 100644 index 0000000..7322f7d --- /dev/null +++ b/fruits.lua @@ -0,0 +1,25 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/fruits.lua +-- adds fruits +-- ===================================== +-- [regis-food] Oranges +-- ===================================== + +print ("RubenFood [Master] - Loading Fruits") + +minetest.register_node(":default:orange", { + description = "Orange Fruit", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"food_orange.png"}, + inventory_image = "food_orange.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + on_use = minetest.item_eat(4), + sounds = default.node_sound_defaults(), +}) \ No newline at end of file diff --git a/init.lua b/init.lua index 565a33b..0843b60 100644 --- a/init.lua +++ b/init.lua @@ -19,8 +19,9 @@ dofile(minetest.get_modpath("food").."/oven.lua") dofile(minetest.get_modpath("food").."/dairy.lua") dofile(minetest.get_modpath("food").."/meats.lua") dofile(minetest.get_modpath("food").."/sandwich.lua") - dofile(minetest.get_modpath("food").."/baking.lua") + +dofile(minetest.get_modpath("food").."/crumbles.lua") dofile(minetest.get_modpath("food").."/cakes.lua") dofile(minetest.get_modpath("food").."/tarts.lua") @@ -32,7 +33,6 @@ dofile(minetest.get_modpath("food").."/drinks.lua") minetest.register_craftitem("food:mug",{ description = "Mug", - tiles = {"food_mug.png"}, inventory_image = "food_mug.png", }) @@ -60,15 +60,8 @@ minetest.register_craft({ ----------------------------Cigerete---------------------------- minetest.register_node(":food:cigarette", { description = "Cigarette", - visual_scale = 1.0, - tiles = {"food_cigar.png"}, inventory_image = "food_cigar.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, on_use = minetest.item_eat(-4), - sounds = default.node_sound_defaults(), }) minetest.register_craft({ diff --git a/sandwich.lua b/sandwich.lua index ddb8693..9151bdd 100644 --- a/sandwich.lua +++ b/sandwich.lua @@ -48,3 +48,12 @@ minetest.register_craft({ {"",'"food:bread_slice"',""}, } }) + +minetest.register_craft({ + output = '"food:burger" 1', + recipe = { + {"",'"food:bun"',""}, + {"food:butter","food:meat",'"food:butter"'}, + {"",'"food:bun"',""}, + } +}) diff --git a/textures/food_bun.png b/textures/food_bun.png new file mode 100644 index 0000000000000000000000000000000000000000..abbe1210bfa6fb1f7a58854129c50ea38095f49c GIT binary patch literal 457 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-{E8wV$=S4Aj$$P 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*Zzopr011|tiU0rr literal 0 HcmV?d00001 diff --git a/textures/food_bun_mix.png b/textures/food_bun_mix.png new file mode 100644 index 0000000000000000000000000000000000000000..ac2e7f467fdd08d9181e37e983f74b70545a2fbe GIT binary patch literal 474 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-{E8wVrRACP1^<* za*Zf)EG@~%FJf4^?u-Xeh^quB|BMw-ln*Rgl$uzQnV+Xnl9`*z zVEUb(6DY$8k_paFD=AMbN@a*G_zzOf4H9(8EKbfz1S&0J*nVJ3KTwzhBpjYtl$V*8 z&Tv5bSvydS9iqRqC^?nk>;LB0FlEm9xw)x%B@ExrOxq6>V*@D*$t=l9Wmxg#G?1@BuB1>01lVq=N??OS=#==shB-lG-R5*-Nj`$ITrP^Yt8JOsS|wL{z0mP z%aYyO&Ff48LQ4cJ?SouY7$&r=dRIHiz*y2qp>jpE*6i+scNH2gEno>*khPPw=gDvP aC`R69W8RBTXPgIG$l&Sf=d#Wzp$Pza6r6nk literal 0 HcmV?d00001 diff --git a/textures/food_sw_cheese.png b/textures/food_sw_cheese.png index be5f84bb4b2171a1fbf3690042b6d015c67fa1c1..d025e8f4b2622518f7433349c3d57f35941e3183 100644 GIT binary patch delta 227 zcmV<90383s1fc|wB#~BFkwFy@2XskIMF-po0TKuz9-q$=k-oowtVu*cR5*>5lf4bZ zAPh$B)Act}I%Z&%$WjU<>sDa~cQ+CfI2|I!{G2OHlJ`BCfT{{!2}S=wQ-L$02M~%H zuFvXwkW}D3N|jXnR0FO6p{U2n8>#ewyzC3VFD=*AhBJ16)?&17s{#UN^b+k}t1lF_ zGq8!Pxm3W;5Ra2WyVG$EtiCtEDZuK_%%;aU+ZzJBw7(2SskWC?{2ytQYWu($0RSGi darX+h{S9RzT$zuq}oaGBTQJnvtQuf3itLK~y+TjZ?`DfG`XL7GNZP zoq<&l5)Y(`RhWSvBQXJBiBxHDk9;U;V>?dU-fuJ{j(KG1DChj%v8Y(%sLD?ispc8qMCRz-G<*3jw}a8Qqr{liRpky5PI2NWZs*I4zK czCs~-06@}W!kJA$xBvhE07*qoM6N<$g76k<=l}o!