1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-22 17:00:26 +01:00

added butter

This commit is contained in:
TenPlus1 2018-05-06 15:03:59 +01:00
parent 8f5dac38dc
commit f42a8ba97e
2 changed files with 24 additions and 0 deletions

24
cow.lua
View File

@ -128,6 +128,30 @@ minetest.register_craftitem(":mobs:bucket_milk", {
groups = {food_milk = 1, flammable = 3}, 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 -- cheese wedge
minetest.register_craftitem(":mobs:cheese", { minetest.register_craftitem(":mobs:cheese", {
description = S("Cheese"), description = S("Cheese"),

BIN
textures/mobs_butter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B