From 80645ff8a22cf9689e3074dd0fdc55bcdffc3772 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 11 Sep 2017 19:03:55 +0100 Subject: [PATCH] added porridge --- README.txt | 2 +- donut.lua | 31 +++++++++++++++++++++++++++++++ textures/farming_porridge.png | Bin 0 -> 193 bytes 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 textures/farming_porridge.png diff --git a/README.txt b/README.txt index c094d21..2b3fa26 100644 --- a/README.txt +++ b/README.txt @@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t Changelog: -1.28 - Added chili peppers and bowl of chili, optimized code and fixed a few bugs +1.28 - Added chili peppers and bowl of chili, optimized code and fixed a few bugs, added porridge 1.27 - Added meshoptions to api and wheat plants, added farming.rarity setting to spawn more/less crops on map, have separate cotton/string items (4x cotton = 1x wool, 2x cotton = 2x string) 1.26 - Added support for [toolranks] mod when using hoe's 1.25 - Added check for farming.conf setting file to disable specific crops globally (inside mod folder) or world specific (inside world folder) diff --git a/donut.lua b/donut.lua index 68aeb8e..87650d7 100644 --- a/donut.lua +++ b/donut.lua @@ -46,3 +46,34 @@ minetest.register_craft({ {'farming:donut'}, } }) + +-- Porridge Oats +minetest.register_craftitem("farming:porridge", { + description = S("Porridge"), + inventory_image = "farming_porridge.png", + on_use = minetest.item_eat(6), +}) + +minetest.after(0, function() + + if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then + + minetest.register_craft({ + output = "farming:porridge", + type = "shapeless", + recipe = { + "farming:barley", "farming:barley", "farming:wheat", + "farming:wheat", "mobs:bucket_milk" + } + }) +else + minetest.register_craft({ + output = "farming:porridge", + type = "shapeless", + recipe = { + "farming:barley", "farming:barley", "farming:wheat", + "farming:wheat", "bucket:bucket_water" + } + }) + end +end) diff --git a/textures/farming_porridge.png b/textures/farming_porridge.png new file mode 100644 index 0000000000000000000000000000000000000000..cd4466fbe3ec2a6baa1290e10e9496a81c6a64c9 GIT binary patch literal 193 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPGa4)6(aJ;=aNBPOxYl=1n+$^YN@ z{ePAE?{nwBpV9w*l}@tb(gZ4FED7=pW^j0RBMrz2@pN$v;kcfhaDclfv1Hap#+E$Z zLN+d=>M7H=@34?I;F!6ix};^7h7pI>Yzt{?X-y*ot(6j*lA4?b1{|8&nwpwSrG`wI m6Bq(Glo&*WL_`jxDKhj%@QAXW-4O>gpTX1B&t;ucLK6U$ZaQKB literal 0 HcmV?d00001