From 6ec6acc539321709ed8517f1a571777a04f5c24c Mon Sep 17 00:00:00 2001 From: AFCMS Date: Tue, 2 Aug 2022 11:58:08 +0200 Subject: Add `minetest.settings` to CSM API and allow CSMs to provide `settingtypes.txt` (#12131) Co-authored-by: sfan5 Co-authored-by: SmallJoker --- doc/client_lua_api.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt index d08cd9b5e..8a450ba13 100644 --- a/doc/client_lua_api.txt +++ b/doc/client_lua_api.txt @@ -938,6 +938,14 @@ Call these functions only at load time! * `minetest.display_chat_message(message)` returns true on success * Shows a chat message to the current player. +Setting-related +--------------- + +* `minetest.settings`: Settings object containing all of the settings from the + main config file (`minetest.conf`). Check lua_api.txt for class reference. +* `minetest.setting_get_pos(name)`: Loads a setting from the main settings and + parses it as a position (in the format `(1,2,3)`). Returns a position or nil. + Class reference --------------- -- cgit v1.2.3