mirror of
https://github.com/minetest-mods/maptools.git
synced 2025-07-01 06:40:20 +02:00
Disable crafting recipes for coins by default
Crafting recipes for coins can be enabled again by setting `maptools.enable_coin_crafting = true` in `minetest.conf`.
This commit is contained in:
committed by
Hugo Locurcio
parent
fd9476c173
commit
9915ec1852
@ -16,11 +16,13 @@ minetest.register_craftitem("maptools:copper_coin", {
|
||||
stack_max = 10000,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "maptools:copper_coin 10",
|
||||
type = "shapeless",
|
||||
recipe = { "default:copper_ingot", "default:copper_ingot" }
|
||||
})
|
||||
if maptools.config and maptools.config.enable_coin_crafting then
|
||||
minetest.register_craft({
|
||||
output = "maptools:copper_coin 10",
|
||||
type = "shapeless",
|
||||
recipe = { "default:copper_ingot", "default:copper_ingot" }
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craftitem("maptools:silver_coin", {
|
||||
description = S("Silver Coin"),
|
||||
@ -29,12 +31,14 @@ minetest.register_craftitem("maptools:silver_coin", {
|
||||
stack_max = 10000,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("moreores") then
|
||||
minetest.register_craft({
|
||||
output = "maptools:silver_coin 10",
|
||||
type = "shapeless",
|
||||
recipe = { "moreores:silver_ingot", "moreores:silver_ingot" }
|
||||
})
|
||||
if maptools.config and maptools.config.enable_coin_crafting then
|
||||
if minetest.get_modpath("moreores") then
|
||||
minetest.register_craft({
|
||||
output = "maptools:silver_coin 10",
|
||||
type = "shapeless",
|
||||
recipe = { "moreores:silver_ingot", "moreores:silver_ingot" }
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_craftitem("maptools:gold_coin", {
|
||||
@ -44,11 +48,13 @@ minetest.register_craftitem("maptools:gold_coin", {
|
||||
stack_max = 10000,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "maptools:gold_coin 10",
|
||||
type = "shapeless",
|
||||
recipe = { "default:gold_ingot", "default:gold_ingot" }
|
||||
})
|
||||
if maptools.config and maptools.config.enable_coin_crafting then
|
||||
minetest.register_craft({
|
||||
output = "maptools:gold_coin 10",
|
||||
type = "shapeless",
|
||||
recipe = { "default:gold_ingot", "default:gold_ingot" }
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craftitem("maptools:infinitefuel", {
|
||||
description = S("Infinite Fuel"),
|
||||
|
Reference in New Issue
Block a user