summaryrefslogtreecommitdiff
path: root/donut.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-09-11 19:03:55 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-09-11 19:03:55 +0100
commit80645ff8a22cf9689e3074dd0fdc55bcdffc3772 (patch)
tree16807695cec0c00dbe21ee609370f096fe786ffe /donut.lua
parent51cf3bb43a0c5ed49607c08515c8290e13cb6d7b (diff)
added porridge
Diffstat (limited to 'donut.lua')
-rw-r--r--donut.lua31
1 files changed, 31 insertions, 0 deletions
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)