From ca0876c6d8c0ba3792481d85823a5fd600659d05 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 17 May 2020 09:51:07 +0100 Subject: [PATCH] onion soup added thanks to edcrypt --- README.md | 2 +- crops/onion.lua | 21 ++++++++++++++++++++- textures/farming_onion_soup.png | Bin 0 -> 161 bytes 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 textures/farming_onion_soup.png diff --git a/README.md b/README.md index 2416f32..697f4a0 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 options +- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base options, onion soup added (thanks edcrypt) - 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. - 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block. diff --git a/crops/onion.lua b/crops/onion.lua index 72a425e..ba8c301 100644 --- a/crops/onion.lua +++ b/crops/onion.lua @@ -7,7 +7,7 @@ local S = farming.intllib --- potato +-- onion minetest.register_craftitem("farming:onion", { description = S("Onion"), inventory_image = "crops_onion.png", @@ -18,6 +18,25 @@ minetest.register_craftitem("farming:onion", { on_use = minetest.item_eat(1), }) +-- onion soup +minetest.register_craftitem("farming:onion_soup", { + description = S("Onion Soup"), + inventory_image = "farming_onion_soup.png", + groups = {flammable = 2}, + on_use = minetest.item_eat(6, "farming:bowl"), +}) + +minetest.register_craft({ + type = "shapeless", + output = "farming:onion_soup", + recipe = { + "group:food_onion", "group:food_onion", "group:food_pot", + "group:food_onion", "group:food_onion", + "group:food_onion", "group:food_onion", "group:food_bowl" + }, + replacements = {{"farming:pot", "farming:pot"}} +}) + -- crop definition local crop_def = { drawtype = "plantlike", diff --git a/textures/farming_onion_soup.png b/textures/farming_onion_soup.png new file mode 100644 index 0000000000000000000000000000000000000000..cd535aec3bffa220f8424fcc64c8f3bcb17efda0 GIT binary patch literal 161 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPE^3h)VWWysF~GHasbrst~u-^lR) zD#I?L8wY_xj3q&S!3+-1ZlnP@ww^AIAsp9}6BdXVaB*=pWC~8d;2_|A