mirror of
https://github.com/minetest-mods/maptools.git
synced 2024-12-23 08:00:17 +01: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:
parent
fd9476c173
commit
9915ec1852
@ -27,3 +27,5 @@ end
|
||||
|
||||
-- Show Map Tools stuff in creative inventory (1 or 0):
|
||||
setting("integer", "hide_from_creative_inventory", 1)
|
||||
-- Enable crafting recipes for coins (true or false):
|
||||
setting("bool", "enable_coin_crafting", false)
|
||||
|
@ -16,11 +16,13 @@ minetest.register_craftitem("maptools:copper_coin", {
|
||||
stack_max = 10000,
|
||||
})
|
||||
|
||||
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,6 +31,7 @@ minetest.register_craftitem("maptools:silver_coin", {
|
||||
stack_max = 10000,
|
||||
})
|
||||
|
||||
if maptools.config and maptools.config.enable_coin_crafting then
|
||||
if minetest.get_modpath("moreores") then
|
||||
minetest.register_craft({
|
||||
output = "maptools:silver_coin 10",
|
||||
@ -36,6 +39,7 @@ if minetest.get_modpath("moreores") then
|
||||
recipe = { "moreores:silver_ingot", "moreores:silver_ingot" }
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_craftitem("maptools:gold_coin", {
|
||||
description = S("Gold Coin"),
|
||||
@ -44,11 +48,13 @@ minetest.register_craftitem("maptools:gold_coin", {
|
||||
stack_max = 10000,
|
||||
})
|
||||
|
||||
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"),
|
||||
|
@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
### Changed
|
||||
|
||||
- Disabled crafting recipes for coins by default.
|
||||
- They can be enabled again by setting `maptools.enable_coin_crafting = true`
|
||||
in `minetest.conf`.
|
||||
- Map Tools nodes can no longer be exploded by TNT.
|
||||
- Switched from Travis CI to GitHub Actions for continuous integration.
|
||||
|
||||
|
3
settingtypes.txt
Normal file
3
settingtypes.txt
Normal file
@ -0,0 +1,3 @@
|
||||
# If `true`, enables coin crafting recipes. If `false`, disables coin crafting recipes.
|
||||
# Takes effect only at load-time; runtime changes to this setting are ignored.
|
||||
maptools.enable_coin_crafting (Enable crafting recipes for coins) bool false
|
Loading…
Reference in New Issue
Block a user