mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2025-01-08 17:10:39 +01:00
add missing butter recipe for wooden buckets
This commit is contained in:
parent
eed132225c
commit
cca7169b9e
19
cow.lua
19
cow.lua
@ -212,20 +212,17 @@ minetest.register_craftitem(":mobs:butter", {
|
|||||||
groups = {food_butter = 1, flammable = 2}
|
groups = {food_butter = 1, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local salt_item = "default:sapling" -- some saplings are high in sodium
|
||||||
|
|
||||||
if minetest.get_modpath("farming") and farming and farming.mod then
|
if minetest.get_modpath("farming") and farming and farming.mod then
|
||||||
|
salt_item = "farming:salt"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mobs:butter",
|
output = "mobs:butter",
|
||||||
recipe = {{"mobs:bucket_milk", "farming:salt"}},
|
recipe = {{"mobs:bucket_milk", salt_item}},
|
||||||
replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}}
|
replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
else -- some saplings are high in sodium so makes a good replacement item
|
|
||||||
minetest.register_craft({
|
|
||||||
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", {
|
||||||
@ -299,4 +296,10 @@ if minetest.get_modpath("wooden_bucket") then
|
|||||||
{"group:food_milk_glass", "vessels:drinking_glass 4"}
|
{"group:food_milk_glass", "vessels:drinking_glass 4"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:butter",
|
||||||
|
recipe = {{"mobs:wooden_bucket_milk", salt_item}},
|
||||||
|
replacements = {{"mobs:wooden_bucket_milk", "wooden_bucket:bucket_wood_empty"}}
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user