minetest.conf is a file that is saved after each shutdown and read at startup if existing. It contains a list of settings. If settings that are needed in the engine are not present in this file, the values that are stored in
src/defaultsettings.cpp are used.
This file is read by default from
../../minetest.conf. Any other path can be chosen by passing the path as a parameter to the program, e.g:
minetest.exe --config path/to/my-minetest.conf
A list of settings used by minetest is stored at minetest.conf.example.
The file is saved as a plain text file, containing a list of
key = value pairs.
Blank lines are ignored. Comments may be inserted by starting the line with the pound (
#) symbol and continue to the end of the line, and are effectively ignored by the config parser.
The API contains several functions to access the settings:
- minetest.setting_set("name", "value")