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,23 +2950,25 @@ minetest.register_craft({
},
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:coin 5",
recipe = {"moreblocks:micro_goldblock_1", "default:sword_stone"}
})
if not minetest.settings:get_bool("disable_coin_crafting") then
minetest.register_craft({
type = "shapeless",
output = "homedecor:coin 5",
recipe = {"moreblocks:micro_goldblock_1", "default:sword_stone"}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:coin 15",
recipe = {"default:gold_ingot", "default:sword_steel"}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:coin 15",
recipe = {"default:gold_ingot", "default:sword_steel"}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:coin 50",
recipe = {"default:goldblock", "default:sword_mese"}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:coin 50",
recipe = {"default:goldblock", "default:sword_mese"}
})
end
minetest.register_craft({
output = "homedecor:lattice_wood 8",