Commit Graph

61 Commits (master)

Author SHA1 Message Date
Jordan Irwin c5559c13bf Fix listmobs command 2021-08-03 17:06:39 -07:00
Jordan Irwin 4ac44bd1a0 Show ore IDs as description 2021-07-20 20:11:11 -07:00
Jordan Irwin cc6f2f9f52 Filter out duplicate ore names 2021-07-20 20:09:42 -07:00
Jordan Irwin 6f1f852c30 Move non-API functions into helpers.lua 2021-07-07 21:09:33 -07:00
Jordan Irwin 69cd1882b5 Docs cleanup 2021-07-07 20:00:40 -07:00
Jordan Irwin 7454048aab Fix "searching" message to display before search begins 2021-07-07 19:43:32 -07:00
Jordan Irwin 7bcc5b0f64 Move chat command registration into chat.lua 2021-07-07 19:20:31 -07:00
Jordan Irwin 13797c8167 Add option to register singleword commands 2021-04-29 05:53:25 -07:00
Jordan Irwin f643959113 cleanup 2021-04-29 05:03:04 -07:00
Jordan Irwin 05295b078e Additionally parse descriptions for matches...
Disabled with -s option.
2021-04-14 21:34:06 -07:00
Jordan Irwin f992a4db3f Show available options in help output text 2021-04-14 20:32:18 -07:00
Jordan Irwin 991a068965 Don't use setting to enable "mobs" type...
Always enabled if "mobs" mod is found.
2021-04-14 16:13:21 -07:00
Jordan Irwin 5dd2850cd5 Update to use Minetest's built-in translation engine 2021-04-14 15:31:50 -07:00
Jordan Irwin 07f69c64d0 Fix undeclared global 2021-04-14 14:57:44 -07:00
Jordan Irwin 867512a5d3 Simplify by not supporting list<type> format 2021-04-14 13:57:20 -07:00
AntumDeluge 9356503782 Add 'listtools' chat command 2017-08-04 00:32:12 -07:00
AntumDeluge 007a57a7a1 Add 'listnodes' chat command 2017-08-03 21:47:58 -07:00
AntumDeluge 3e0311b61d Add optional support for 'mobs' mod:
Adds 'listmobs' chat command.
2017-08-03 18:09:06 -07:00
AntumDeluge 9b3607c282 Add docstring 'default' tag to 'bullet_list' setting 2017-08-03 18:02:38 -07:00
AntumDeluge ad26f196b8 Add config setting 'listitems.enable_generic':
Enables/Disables generic 'list' chat command (default: disabled).
2017-08-03 17:06:10 -07:00
AntumDeluge c678a98243 Reorder parameters in 'listitems.list' 2017-08-03 16:36:25 -07:00
AntumDeluge 29c6ddf5d9 Fix function name in warning log output 2017-08-03 16:35:03 -07:00
AntumDeluge ff7d6f4038 Remove unnecessary duplicate list local to 'listitems.list' 2017-08-03 16:34:42 -07:00
AntumDeluge e79eb90f4d Optimize code 2017-08-03 15:10:18 -07:00
AntumDeluge c1cf2bb9ff Remove duplicate debugging output 2017-08-03 15:09:55 -07:00
AntumDeluge 496f984350 Use local helper function 'list' within chat command registration 2017-08-03 15:09:33 -07:00
AntumDeluge 63e4a4a2ff Disallow unrecognized list type arguments 2017-08-03 14:35:34 -07:00
AntumDeluge df56585ebc Reword option error string 2017-08-03 14:34:38 -07:00
AntumDeluge 6f47874e71 Add general 'list' chat command 2017-08-03 12:49:55 -07:00
AntumDeluge c0bd8e78e6 Fix 'params' description in 'listentities' chat command registration 2017-08-03 11:11:02 -07:00
AntumDeluge a25011e70e Add 'listores' chat command 2017-08-03 11:09:16 -07:00
AntumDeluge 5007b5b855 Format some docstrings for LDoc output 2017-08-02 17:36:00 -07:00
AntumDeluge ef088c9990 Make 'listitems.list' more versatile 2017-08-02 17:03:32 -07:00
AntumDeluge 069f4e6794 Rename parameter 'param' to 'params' in chatcommands registration 2017-08-02 17:01:38 -07:00
AntumDeluge 75cc3036a3 Call 'formatMatching' with 'lower' parameter from 'listitems.list' 2017-08-02 17:00:33 -07:00
AntumDeluge 71c1d6302b Rename parameter 'param' to 'params' in 'listitems.list' function 2017-08-02 16:59:00 -07:00
AntumDeluge b30e796788 Add parameter 'lower' to 'listitems.list' function:
boolean: Determines if matching should be case-insensitive.
2017-08-02 16:56:51 -07:00
AntumDeluge 374b76aed6 Add argument 'lower' to 'formatMatching' function:
boolean: Determines if matching should be case-insensitive.
2017-08-02 16:53:13 -07:00
AntumDeluge 7d67176610 Replace 'getRegisteredItems' & 'getRegisteredEntities':
Use 'getRegistered' with parameter instead.
2017-08-02 12:55:42 -07:00
AntumDeluge fa89aec156 Call global function 'listitems.list' from chat commands:
listitems.list: listitems base function.
2017-08-02 12:43:02 -07:00
AntumDeluge b2accdc305 Add local 'getRegistered' function:
- Calls either 'getRegisteredItems' or 'getRegisteredEntities' with
argument.
- Will replace the previously mentioned functions.
2017-08-02 12:42:14 -07:00
AntumDeluge 5eed4cb308 Display '-v' option explicitly in help string 2017-08-02 10:50:25 -07:00
AntumDeluge 1748f06f83 Don't allow translating chat commands themselves 2017-08-02 10:32:14 -07:00
AntumDeluge c0b9160761 Add 'listentities' command 2017-08-01 14:38:14 -07:00
AntumDeluge 0fc5b21ad4 Only show description if not 'nil' 2017-08-01 13:40:35 -07:00
AntumDeluge 46c05fcfec BUGFIX: Error when invoking 'listitems' without any parameters 2017-08-01 13:39:51 -07:00
AntumDeluge f3bf7593a4 Add functions for using/checking switches:
Set '-v' switch to display item descriptions.
2017-08-01 13:00:55 -07:00
AntumDeluge de7ca15250 Create local function 'formatMatching':
Searches & formats list for matching strings.
2017-07-24 15:21:17 -07:00
AntumDeluge 4ab99a03ad Rename local variable 'all_item_names' to 'all_names' 2017-07-24 15:04:13 -07:00
AntumDeluge 567a8f435f Create local function 'displayList':
Displays list to player.
2017-07-24 14:35:33 -07:00