mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
added butter
This commit is contained in:
parent
8f5dac38dc
commit
f42a8ba97e
24
cow.lua
24
cow.lua
@ -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
BIN
textures/mobs_butter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 181 B |
Loading…
Reference in New Issue
Block a user