Skip to content

Commit

Permalink
add missing butter recipe for wooden buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed May 26, 2022
1 parent eed1322 commit cca7169
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions cow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,18 @@ minetest.register_craftitem(":mobs:butter", {
groups = {food_butter = 1, flammable = 2}
})

if minetest.get_modpath("farming") and farming and farming.mod then
local salt_item = "default:sapling" -- some saplings are high in sodium

minetest.register_craft({
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({
output = "mobs:butter",
recipe = {{"mobs:bucket_milk", "default:sapling"}},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
})
if minetest.get_modpath("farming") and farming and farming.mod then
salt_item = "farming:salt"
end

minetest.register_craft({
output = "mobs:butter",
recipe = {{"mobs:bucket_milk", salt_item}},
replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}}
})

-- cheese wedge
minetest.register_craftitem(":mobs:cheese", {
description = S("Cheese"),
Expand Down Expand Up @@ -299,4 +296,10 @@ if minetest.get_modpath("wooden_bucket") then
{"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

0 comments on commit cca7169

Please sign in to comment.