diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-05-06 15:03:59 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-05-06 15:03:59 +0100 |
commit | f42a8ba97e4fa9beef2e46f02ffe9e5af248a195 (patch) | |
tree | 2899f078efc20f3eb4ca8c528ec98db970362ac6 | |
parent | 8f5dac38dca20da23198606f0895f05c03ff03cf (diff) |
added butter
-rw-r--r-- | cow.lua | 24 | ||||
-rw-r--r-- | textures/mobs_butter.png | bin | 0 -> 181 bytes |
2 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"), diff --git a/textures/mobs_butter.png b/textures/mobs_butter.png Binary files differnew file mode 100644 index 0000000..2e84349 --- /dev/null +++ b/textures/mobs_butter.png |