9 Commits

Author SHA1 Message Date
1b7be03956 Bump to version 2.0.0 2019-11-25 13:51:18 +01:00
0e30357190 Link to the WorldEdit mod in NODES_ITEMS.md 2019-10-13 14:15:25 +02:00
ccf94fb78b Make inventory images use textures available in Minetest Game 5.0.0
This closes #9.
2019-10-13 14:13:10 +02:00
f0a3d58a99 Update changelog to mention nodes/items not being droppable anymore 2019-10-04 00:23:02 +02:00
ea85b3e073 Move maptools.drop_msg above dofiles
Maptools tools/items have become droppable again, the function to prevent this is loaded after nodes.lua, leading the on_drop function to be nil.
2019-10-04 00:21:18 +02:00
fa62966bbe Update pre-commit hooks to 2.3.0 2019-09-25 23:06:20 +02:00
65cb89a261 Document the Minetest 5.0.0 version requirement 2019-09-08 22:57:15 +02:00
cb4888a2bb Travis CI: Use the bionic distribution 2019-07-29 00:49:03 +02:00
ae83eea882 Optimize PNG images losslessly
Commands used:

- `parallel optipng -o7 -zm1-9 -strip all ::: **/*.png`
- `parallel advpng -z4 -i5000 ::: **/*.png`
2019-06-19 21:22:29 +02:00
14 changed files with 34 additions and 23 deletions

View File

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0 rev: v2.3.0
hooks: hooks:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace

View File

@ -1,15 +1,15 @@
language: generic dist: bionic
language: python
addons: python:
apt: - 3.7.1
packages:
- luarocks
install: install:
- pyenv global 3.6.3 - sudo apt-get update -qq
- pip3 install --user pre-commit - sudo apt-get install -qqq luarocks
- pip3 install pre-commit
- luarocks install --local luacheck - luarocks install --local luacheck
script: script:
- $HOME/.local/bin/pre-commit run --all-files - pre-commit run --all-files
- $HOME/.luarocks/bin/luacheck . - $HOME/.luarocks/bin/luacheck .

View File

@ -7,9 +7,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased] ## [Unreleased]
## [2.0.0] - 2019-11-25
### Changed ### Changed
- The minimum supported Minetest version is now 5.0.0. - The minimum supported Minetest version is now 5.0.0.
- Map Tools nodes/items can no longer be dropped to prevent them from falling
into bad hands.
### Fixed
- The inventory images of `no_interact`, `no_build`, `ignore_like_no_clip`
and `ignore_like_no_point` now use textures that are available in
Minetest Game 5.0.0.
## [1.1.0] - 2019-03-23 ## [1.1.0] - 2019-03-23
@ -22,5 +32,6 @@ 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/v1.1.0...HEAD [Unreleased]: https://github.com/minetest-mods/maptools/compare/v2.0.0...HEAD
[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

View File

@ -9,8 +9,8 @@ use `-1` as the amount.
## Nodes ## Nodes
:warning: denotes an unpointable, unbreakable block; be very careful with them, :warning: denotes an unpointable, unbreakable block; be very careful with them,
as they cannot be removed by hand (they can only be removed with WorldEdit or as they cannot be removed by hand (they can only be removed with
similar). [WorldEdit](https://github.com/Uberi/Minetest-WorldEdit) or similar).
| Item code | Description | | Item code | Description |
| ----------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

View File

@ -63,9 +63,9 @@ on that line.
## Version compatibility ## Version compatibility
Map Tools is currently primarily tested with Minetest 0.4.17. Map Tools is currently primarily tested with Minetest 5.1.0.
It may or may not work with newer or older versions. Issues arising in older It may or may not work with newer or older versions. Issues arising in older
versions than 0.4.17 will generally not be fixed. versions than 5.0.0 will generally not be fixed.
## License ## License

View File

@ -16,14 +16,14 @@ local S, NS = dofile(modpath .. "/intllib.lua")
maptools.S = S maptools.S = S
maptools.NS = NS maptools.NS = NS
maptools.drop_msg = function(itemstack, player)
local name = player:get_player_name()
minetest.chat_send_player(name, S("[maptools] tools/nodes do not drop!"))
end
dofile(modpath .. "/config.lua") dofile(modpath .. "/config.lua")
dofile(modpath .. "/aliases.lua") dofile(modpath .. "/aliases.lua")
dofile(modpath .. "/craftitems.lua") dofile(modpath .. "/craftitems.lua")
dofile(modpath .. "/default_nodes.lua") dofile(modpath .. "/default_nodes.lua")
dofile(modpath .. "/nodes.lua") dofile(modpath .. "/nodes.lua")
dofile(modpath .. "/tools.lua") dofile(modpath .. "/tools.lua")
maptools.drop_msg = function(itemstack, player)
local name = player:get_player_name()
minetest.chat_send_player(name, S("[maptools] tools/nodes do not drop!"))
end

View File

@ -128,7 +128,7 @@ minetest.register_node("maptools:ignore_like_no_clip", {
description = S("Ignore-like (no clip)"), description = S("Ignore-like (no clip)"),
range = 12, range = 12,
stack_max = 10000, stack_max = 10000,
inventory_image = "default_steel_block.png^dye_purple.png", inventory_image = "default_steel_block.png^dye_violet.png",
tiles = {"invisible.png"}, tiles = {"invisible.png"},
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
@ -143,7 +143,7 @@ minetest.register_node("maptools:ignore_like_no_point", {
description = S("Ignore-like (no point)"), description = S("Ignore-like (no point)"),
range = 12, range = 12,
stack_max = 10000, stack_max = 10000,
inventory_image = "default_steel_block.png^dye_purple.png", inventory_image = "default_steel_block.png^dye_violet.png",
tiles = {"invisible.png"}, tiles = {"invisible.png"},
paramtype = "light", paramtype = "light",
pointable = false, pointable = false,
@ -283,7 +283,7 @@ minetest.register_node("maptools:nobuild", {
description = S("Build Prevention"), description = S("Build Prevention"),
range = 12, range = 12,
stack_max = 10000, stack_max = 10000,
inventory_image = "default_steel_block.png^bones_bones.png", inventory_image = "default_steel_block.png^default_flint.png",
drawtype = "airlike", drawtype = "airlike",
walkable = false, walkable = false,
pointable = false, pointable = false,
@ -298,7 +298,7 @@ minetest.register_node("maptools:nointeract", {
description = S("Interact Prevention"), description = S("Interact Prevention"),
range = 12, range = 12,
stack_max = 10000, stack_max = 10000,
inventory_image = "default_steel_block.png^default_scorched_stuff.png", inventory_image = "default_steel_block.png^default_bush_stem.png",
drawtype = "airlike", drawtype = "airlike",
walkable = false, walkable = false,
paramtype = "light", paramtype = "light",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 794 B

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 466 B

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 380 B