From 03d14b2b3913bd877904b93eba498eafda023937 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 25 Jun 2020 16:20:33 +0100 Subject: [PATCH] added pasta and spaghetti --- README.md | 2 +- food.lua | 52 ++++++++++++++++++++++++++++++++- textures/farming_pasta.png | Bin 0 -> 143 bytes textures/farming_spaghetti.png | Bin 0 -> 242 bytes 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 textures/farming_pasta.png create mode 100644 textures/farming_spaghetti.png diff --git a/README.md b/README.md index 9c11965..92c07b5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t ### Changelog: -- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice +- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice, added pasta and spaghetti options, onion soup added (thanks edcrypt), Added apple pie, added wild cotton to savanna - 1.44 - Added 'farming_stage_length' in mod settings for speed of crop growth, also thanks to TheDarkTiger for translation updates - 1.43 - Scythe works on use instead of right-click, added seed=1 groups to actual seeds and seed=2 group for plantable food items. diff --git a/food.lua b/food.lua index cc656a0..5d65013 100644 --- a/food.lua +++ b/food.lua @@ -242,7 +242,6 @@ minetest.register_craft({ minetest.register_craftitem("farming:cactus_juice", { description = S("Cactus Juice"), inventory_image = "farming_cactus_juice.png", --- on_use = minetest.item_eat(2, "vessels:drinking_glass"), groups = {vessel = 1}, on_use = function(itemstack, user, pointed_thing) if user then @@ -268,3 +267,54 @@ minetest.register_craft({ {"group:food_juicer", "farming:juicer"}, }, }) + +-- Pasta + +minetest.register_craftitem("farming:pasta", { + description = S("Pasta"), + inventory_image = "farming_pasta.png", + groups = {food_pasta = 1}, +}) + +if minetest.get_modpath("mobs_animal") or minetest.get_modpath("xanadu")then +minetest.register_craft({ + output = "farming:pasta", + type = "shapeless", + recipe = { + "group:food_flour", "group:food_mixing_bowl", + "group:food_butter" + }, + replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}} +}) +else +minetest.register_craft({ + output = "farming:pasta", + type = "shapeless", + recipe = { + "group:food_flour", "group:food_mixing_bowl", + "group:food_oil" + }, + replacements = { + {"group:food_mixing_bowl", "farming:mixing_bowl"}, + {"group:food_oil", "vessels:glass_bottle"}, + } +}) +end + +-- Spaghetti + +minetest.register_craftitem("farming:spaghetti", { + description = S("Spaghetti"), + inventory_image = "farming_spaghetti.png", + on_use = minetest.item_eat(8), +}) + +minetest.register_craft({ + output = "farming:spaghetti", + type = "shapeless", + recipe = { + "group:food_pasta", "group:food_saucepan", + "group:food_tomato", "group:food_garlic_clove", "group:food_garlic_clove" + }, + replacements = {{"group:food_saucepan", "farming:saucepan"}} +}) diff --git a/textures/farming_pasta.png b/textures/farming_pasta.png new file mode 100644 index 0000000000000000000000000000000000000000..af6a48c7599dc6b31fe4bf77f3777c0e90127f99 GIT binary patch literal 143 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;TYyi9>rIZZgNvh=?_+Rk&!51aqPg8BL|KgNXR{SVD^Cr3?kx5GY%X# oc*$^BjFnB)n=LhsP0fs9PdfWFx!>idfJQKQy85}Sb4q9e0FbjQ?*IS* literal 0 HcmV?d00001 diff --git a/textures/farming_spaghetti.png b/textures/farming_spaghetti.png new file mode 100644 index 0000000000000000000000000000000000000000..a401281bd3de16321dc80dd3df7d46345cd6d7bf GIT binary patch literal 242 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaN3?zjj6;1;w=>VS)*F**eE_TM5#vCz0YG3>X zSZ0eXTr}_bVvBFzKUN%=vJ$9_u_VYZn8D%MjWi&q)zif>MB?(=E<>)v20X4)bz<-G zsU>SM?Q&4q9sR*_&y>ES98XN;vSfFAO;`~IW-0m}y!Cs;Q=uW`}$=~wTYud8v| z#i`qNx3oLgq}KO*HB)D*+=>z6Ii+*PkR>WHqx8|t=^eSO>!SpV&$