mirror of
https://codeberg.org/AntumLuanti/mod-cleaner.git
synced 2025-03-15 04:41:22 +00:00
Make chat commands plural
This commit is contained in:
parent
d2209675ed
commit
5568a1e91a
3 changed files with 11 additions and 11 deletions
1
TODO.txt
1
TODO.txt
|
@ -4,6 +4,5 @@ TODO:
|
|||
- update inventories when items are replaced:
|
||||
- creative
|
||||
- storage (chests, etc.)
|
||||
- make chat commands plural (e.g. /replace_nodes)
|
||||
- add admin tool for replacing/removing nodes
|
||||
- add LBM when removing an item if it is a node
|
||||
|
|
|
@ -3,13 +3,14 @@ v1.2
|
|||
----
|
||||
- added API
|
||||
- added chat commands:
|
||||
- remove_entity
|
||||
- remove_node
|
||||
- replace_item
|
||||
- replace_node
|
||||
- remove_entities
|
||||
- remove_nodes
|
||||
- replace_items
|
||||
- replace_nodes
|
||||
- find_unknown_nodes
|
||||
- replace_ores (unsafe)
|
||||
- added support for unregistering ores (unsafe)
|
||||
- added setting for enabling "unsafe" methods & commands
|
||||
- added support for unregistering ores
|
||||
- all types are loaded from <world_path>/cleaner.json file
|
||||
- added localization support
|
||||
|
||||
|
|
10
chat.lua
10
chat.lua
|
@ -34,17 +34,17 @@ local param_def = {
|
|||
|
||||
local cmd_repo = {
|
||||
entity = {
|
||||
cmd = "remove_entity",
|
||||
cmd = "remove_entities",
|
||||
params = {"entity"},
|
||||
oparams = {radius=100},
|
||||
},
|
||||
rem_node = {
|
||||
cmd = "remove_node",
|
||||
cmd = "remove_nodes",
|
||||
params = {"node"},
|
||||
oparams = {radius=5},
|
||||
},
|
||||
rep_node = {
|
||||
cmd = "replace_node",
|
||||
cmd = "replace_nodes",
|
||||
params = {"old_node", "new_node"},
|
||||
oparams = {radius=5},
|
||||
},
|
||||
|
@ -53,11 +53,11 @@ local cmd_repo = {
|
|||
oparams = {radius=100},
|
||||
},
|
||||
item = {
|
||||
cmd = "replace_item",
|
||||
cmd = "replace_items",
|
||||
params = {"old_item", "new_item"},
|
||||
},
|
||||
ore = {
|
||||
cmd = "remove_ore",
|
||||
cmd = "remove_ores",
|
||||
params = {"ore"},
|
||||
},
|
||||
param = {
|
||||
|
|
Loading…
Add table
Reference in a new issue