summaryrefslogtreecommitdiff
path: root/farming/donut.lua
diff options
context:
space:
mode:
Diffstat (limited to 'farming/donut.lua')
-rw-r--r--farming/donut.lua35
1 files changed, 34 insertions, 1 deletions
diff --git a/farming/donut.lua b/farming/donut.lua
index 68aeb8e..be2e9b8 100644
--- a/farming/donut.lua
+++ b/farming/donut.lua
@@ -12,7 +12,7 @@ minetest.register_craft({
output = "farming:donut 3",
recipe = {
{'', 'farming:wheat', ''},
- {'farming:wheat', '', 'farming:wheat'},
+ {'farming:wheat', 'farming:sugar', 'farming:wheat'},
{'', 'farming:wheat', ''},
}
})
@@ -46,3 +46,36 @@ 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"
+ },
+ replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}}
+ })
+else
+ minetest.register_craft({
+ output = "farming:porridge",
+ type = "shapeless",
+ recipe = {
+ "farming:barley", "farming:barley", "farming:wheat",
+ "farming:wheat", "bucket:bucket_water"
+ },
+ replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
+ })
+ end
+end)