mirror of
https://codeberg.org/AntumLuanti/mod-cleaner.git
synced 2025-03-21 15:41:22 +00:00
Change "cleaner" chat command to "ctool"
This commit is contained in:
parent
3a708a03b6
commit
c98f6a656e
3 changed files with 9 additions and 10 deletions
1
TODO.txt
1
TODO.txt
|
@ -9,4 +9,3 @@ TODO:
|
||||||
- add "xrotate" & "zrorate" modes for pencil
|
- add "xrotate" & "zrorate" modes for pencil
|
||||||
- fix pencil "write" mode when pointing to side of node (node gets placed below)
|
- fix pencil "write" mode when pointing to side of node (node gets placed below)
|
||||||
- move HTML docs to gh-pages branch
|
- move HTML docs to gh-pages branch
|
||||||
- change "cleaner" chat command to something like "cleanertool" or "ctool"
|
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
v1.2
|
v1.2
|
||||||
----
|
----
|
||||||
- added API
|
- added API
|
||||||
|
- added support for unregistering ores (unsafe)
|
||||||
|
- added setting for enabling "unsafe" methods & commands
|
||||||
|
- all types are loaded from <world_path>/cleaner.json file
|
||||||
|
- added localization support
|
||||||
|
- added Spanish localization
|
||||||
|
- added pencil tool for erasing, adding, & swapping nodes
|
||||||
- added chat commands:
|
- added chat commands:
|
||||||
- remove_entities
|
- remove_entities
|
||||||
- remove_nodes
|
- remove_nodes
|
||||||
|
@ -9,13 +15,7 @@ v1.2
|
||||||
- replace_nodes
|
- replace_nodes
|
||||||
- find_unknown_nodes
|
- find_unknown_nodes
|
||||||
- remove_ores (unsafe)
|
- remove_ores (unsafe)
|
||||||
- added support for unregistering ores (unsafe)
|
- ctool (manages pencil tool settings)
|
||||||
- added setting for enabling "unsafe" methods & commands
|
|
||||||
- all types are loaded from <world_path>/cleaner.json file
|
|
||||||
- added localization support
|
|
||||||
- added Spanish localization
|
|
||||||
- added pencil tool for erasing, adding, & swapping nodes
|
|
||||||
- added "cleaner" chat command for managing pencil tool settings
|
|
||||||
|
|
||||||
v1.1
|
v1.1
|
||||||
----
|
----
|
||||||
|
|
4
chat.lua
4
chat.lua
|
@ -465,10 +465,10 @@ end
|
||||||
|
|
||||||
--- Manages settings for wielded cleaner tool.
|
--- Manages settings for wielded cleaner tool.
|
||||||
--
|
--
|
||||||
-- @chatcmd cleaner
|
-- @chatcmd ctool
|
||||||
-- @param action Action to execute. Can be "status", "setmode", or "setnode".
|
-- @param action Action to execute. Can be "status", "setmode", or "setnode".
|
||||||
-- @param value Mode or node to be set for tool.
|
-- @param value Mode or node to be set for tool.
|
||||||
core.register_chatcommand("cleaner", {
|
core.register_chatcommand("ctool", {
|
||||||
privs = {server=true},
|
privs = {server=true},
|
||||||
description = S("Manage settings for wielded cleaner tool.") .. "\n\n"
|
description = S("Manage settings for wielded cleaner tool.") .. "\n\n"
|
||||||
.. S("Params:") .. "\n action: Action to execute. Can be one of \"status\", \"setmode\", or \"setnode\"."
|
.. S("Params:") .. "\n action: Action to execute. Can be one of \"status\", \"setmode\", or \"setnode\"."
|
||||||
|
|
Loading…
Add table
Reference in a new issue