diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-10-18 13:16:09 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-10-18 13:16:09 +0200 |
commit | c1aea404b862256e6bf9316eeb8f32c72b78a4c2 (patch) | |
tree | c85049475ebac3b891521caf0fd69de40060bb2d /doc/client_lua_api.txt | |
parent | 3a718f12b433ef3980c8fc6e29957595110cd8f4 (diff) | |
download | dragonfireclient-c1aea404b862256e6bf9316eeb8f32c72b78a4c2.tar.xz |
Lint is bitch
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r-- | doc/client_lua_api.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt index 15c0b8a6a..599ce0b83 100644 --- a/doc/client_lua_api.txt +++ b/doc/client_lua_api.txt @@ -674,9 +674,8 @@ Minetest namespace reference ### Global callback registration functions Call these functions only at load time! -* `minetest.open_special_inventory()` +* `minetest.open_enderchest()` * This function is called if the client uses the Keybind for it (by default "O") - * It is used for a client provided inventory * You can override it * `minetest.register_globalstep(function(dtime))` * Called every client environment step, usually interval of 0.1s @@ -697,6 +696,13 @@ Call these functions only at load time! * Adds definition to minetest.registered_chatcommands * `minetest.unregister_chatcommand(name)` * Unregisters a chatcommands registered with register_chatcommand. +* `minetest.register_list_command(command, desc, setting)` + * Registers a chatcommand `command` to manage a list that takes the args `del | add | list <param>` + * The list is stored comma-seperated in `setting` + * `desc` is the description + * `add` adds something to the list + * `del` del removes something from the list + * `list` lists all items on the list * `minetest.register_on_death(function())` * Called when the local player dies * `minetest.register_on_hp_modification(function(hp))` |