diff options
Diffstat (limited to 'cow.lua')
-rw-r--r-- | cow.lua | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -128,6 +128,30 @@ minetest.register_craftitem(":mobs:bucket_milk", { groups = {food_milk = 1, flammable = 3}, }) +-- butter +minetest.register_craftitem(":mobs:butter", { + description = S("Butter"), + inventory_image = "mobs_butter.png", + on_use = minetest.item_eat(1), + groups = {food_butter = 1, flammable = 2}, +}) + +if minetest.get_modpath("farming") and farming and farming.mod then +minetest.register_craft({ + type = "shapeless", + output = "mobs:butter", + recipe = {"mobs:bucket_milk", "farming:salt"}, + replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}} +}) +else -- some saplings are high in sodium so makes a good replacement item +minetest.register_craft({ + type = "shapeless", + output = "mobs:butter", + recipe = {"mobs:bucket_milk", "default:sapling"}, + replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}} +}) +end + -- cheese wedge minetest.register_craftitem(":mobs:cheese", { description = S("Cheese"), |