forked from minetest-mods/maptools
Compare commits
4 Commits
85f7f95a00
...
v2.2.0
Author | SHA1 | Date | |
---|---|---|---|
e3ca31cdb9 | |||
9915ec1852 | |||
fd9476c173 | |||
d11b3a1caf |
@ -1,7 +1,8 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v2.3.0
|
rev: v3.3.0
|
||||||
hooks:
|
hooks:
|
||||||
|
- id: fix-byte-order-marker
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
|
@ -27,3 +27,5 @@ end
|
|||||||
|
|
||||||
-- Show Map Tools stuff in creative inventory (1 or 0):
|
-- Show Map Tools stuff in creative inventory (1 or 0):
|
||||||
setting("integer", "hide_from_creative_inventory", 1)
|
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,
|
stack_max = 10000,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
if maptools.config and maptools.config.enable_coin_crafting then
|
||||||
|
minetest.register_craft({
|
||||||
output = "maptools:copper_coin 10",
|
output = "maptools:copper_coin 10",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = { "default:copper_ingot", "default:copper_ingot" }
|
recipe = { "default:copper_ingot", "default:copper_ingot" }
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("maptools:silver_coin", {
|
minetest.register_craftitem("maptools:silver_coin", {
|
||||||
description = S("Silver Coin"),
|
description = S("Silver Coin"),
|
||||||
@ -29,12 +31,14 @@ minetest.register_craftitem("maptools:silver_coin", {
|
|||||||
stack_max = 10000,
|
stack_max = 10000,
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("moreores") then
|
if maptools.config and maptools.config.enable_coin_crafting then
|
||||||
|
if minetest.get_modpath("moreores") then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "maptools:silver_coin 10",
|
output = "maptools:silver_coin 10",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = { "moreores:silver_ingot", "moreores:silver_ingot" }
|
recipe = { "moreores:silver_ingot", "moreores:silver_ingot" }
|
||||||
})
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("maptools:gold_coin", {
|
minetest.register_craftitem("maptools:gold_coin", {
|
||||||
@ -44,11 +48,13 @@ minetest.register_craftitem("maptools:gold_coin", {
|
|||||||
stack_max = 10000,
|
stack_max = 10000,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
if maptools.config and maptools.config.enable_coin_crafting then
|
||||||
|
minetest.register_craft({
|
||||||
output = "maptools:gold_coin 10",
|
output = "maptools:gold_coin 10",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = { "default:gold_ingot", "default:gold_ingot" }
|
recipe = { "default:gold_ingot", "default:gold_ingot" }
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("maptools:infinitefuel", {
|
minetest.register_craftitem("maptools:infinitefuel", {
|
||||||
description = S("Infinite Fuel"),
|
description = S("Infinite Fuel"),
|
||||||
|
@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.2.0] - 2021-06-28
|
||||||
|
|
||||||
### Changed
|
### 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.
|
- Map Tools nodes can no longer be exploded by TNT.
|
||||||
- Switched from Travis CI to GitHub Actions for continuous integration.
|
- Switched from Travis CI to GitHub Actions for continuous integration.
|
||||||
|
|
||||||
@ -48,7 +53,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
- Initial versioned release.
|
- Initial versioned release.
|
||||||
|
|
||||||
[Unreleased]: https://github.com/minetest-mods/maptools/compare/v2.1.0...HEAD
|
[Unreleased]: https://github.com/minetest-mods/maptools/compare/v2.2.0...HEAD
|
||||||
|
[2.2.0]: https://github.com/minetest-mods/maptools/compare/v2.1.0...v2.2.0
|
||||||
[2.1.0]: https://github.com/minetest-mods/maptools/compare/v2.0.0...v2.1.0
|
[2.1.0]: https://github.com/minetest-mods/maptools/compare/v2.0.0...v2.1.0
|
||||||
[2.0.0]: https://github.com/minetest-mods/maptools/compare/v1.1.0...v2.0.0
|
[2.0.0]: https://github.com/minetest-mods/maptools/compare/v1.1.0...v2.0.0
|
||||||
[1.1.0]: https://github.com/minetest-mods/maptools/compare/v1.0.0...v1.1.0
|
[1.1.0]: https://github.com/minetest-mods/maptools/compare/v1.0.0...v1.1.0
|
||||||
|
@ -25,7 +25,7 @@ as they cannot be removed by hand (they can only be removed with
|
|||||||
| `maptools:kill` | :warning: Instant kill blocks (damages players by 20 HP per second). |
|
| `maptools:kill` | :warning: Instant kill blocks (damages players by 20 HP per second). |
|
||||||
| `maptools:drowning` | :warning: Simulates drowning in water. |
|
| `maptools:drowning` | :warning: Simulates drowning in water. |
|
||||||
| `maptools:light_block` | :warning: Invisible non-solid block, prevents light from passing through. |
|
| `maptools:light_block` | :warning: Invisible non-solid block, prevents light from passing through. |
|
||||||
| `maptools:light_bulb` | :warning: Invisible non-solid block, emitting the maximum amount of light. |
|
| `maptools:lightbulb` | :warning: Invisible non-solid block, emitting the maximum amount of light. |
|
||||||
|
|
||||||
## Items
|
## Items
|
||||||
|
|
||||||
|
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
|
Reference in New Issue
Block a user