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