add setting disable_coin_crafting to make coins not available for crafting

This commit is contained in:
codexp 2018-03-24 01:08:06 +01:00 committed by Vanessa Dannenberg
parent 39984c356b
commit 8132cfc6f8

View File

@ -2950,6 +2950,7 @@ minetest.register_craft({
}, },
}) })
if not minetest.settings:get_bool("disable_coin_crafting") then
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "homedecor:coin 5", output = "homedecor:coin 5",
@ -2967,6 +2968,7 @@ minetest.register_craft({
output = "homedecor:coin 50", output = "homedecor:coin 50",
recipe = {"default:goldblock", "default:sword_mese"} recipe = {"default:goldblock", "default:sword_mese"}
}) })
end
minetest.register_craft({ minetest.register_craft({
output = "homedecor:lattice_wood 8", output = "homedecor:lattice_wood 8",