diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-22 14:25:31 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-22 14:25:31 +0000 |
commit | 7a972937da8a116e1d285531749c4c3f47341f96 (patch) | |
tree | 27fbf0fbc4228e7e96970c6d045460603b7436a7 /donut.lua | |
parent | 283e4b7a9ba11190141a94011e43a3c43c7fcb7c (diff) |
added sliced bread, toast, toast sandwich. changed some recipes
Diffstat (limited to 'donut.lua')
-rw-r--r-- | donut.lua | 23 |
1 files changed, 9 insertions, 14 deletions
@@ -51,31 +51,26 @@ minetest.register_craft({ minetest.register_craftitem("farming:porridge", { description = S("Porridge"), inventory_image = "farming_porridge.png", - on_use = minetest.item_eat(6), + on_use = minetest.item_eat(6, "farming:bowl"), }) minetest.after(0, function() + local fluid = "bucket:bucket_water" + local fluid_return = "bucket:bucket_water" + if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then + fluid = "group:food_milk" + fluid_return = "mobs:bucket_milk" + end minetest.register_craft({ - output = "farming:porridge", type = "shapeless", - recipe = { - "group:food_barley", "group:food_barley", "group:food_wheat", - "group:food_wheat", "group:food_milk" - }, - replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}} - }) -else - minetest.register_craft({ output = "farming:porridge", - type = "shapeless", recipe = { "group:food_barley", "group:food_barley", "group:food_wheat", - "group:food_wheat", "bucket:bucket_water" + "group:food_wheat", "group:food_bowl", fluid }, - replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} + replacements = {{fluid_return, "bucket:bucket_empty"}} }) - end end) |