mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-20 05:14:10 +02:00
Modular Multipurpose Minetest Modding Library
.gitignore | ||
b3d_specification.txt | ||
b3d.lua | ||
conf.lua | ||
data.lua | ||
file.lua | ||
func.lua | ||
heap.lua | ||
init.lua | ||
kdtree.lua | ||
log.lua | ||
math.lua | ||
minetest.lua | ||
mod.conf | ||
mod.lua | ||
player.lua | ||
quaternion.lua | ||
ranked_set.lua | ||
Readme.md | ||
schema.lua | ||
screenshot.png | ||
table.lua | ||
test.lua | ||
text.lua | ||
trie.lua | ||
vector.lua |
Modding Library (modlib
)
Multipurpose Minetest Modding Library
About
No dependencies. Licensed under the MIT License. Written by Lars Mueller aka LMD or appguru(eu).
API
Mostly self-documenting code. Mod namespace is modlib
or _ml
, containing all variables & functions.
Configuration
Legacy
- Configuration is loaded from
<worldpath>/config/<modname>.<extension>
, the following extensions are supported and loaded (in the given order), with loaded configurations overriding properties of previous ones: - Settings are loaded from
minetest.conf
and override configuration values
Locations
- Default configuration:
<modfolder>/conf.lua
- World configuration:
config/<modname>.<format>
- Mod configuration:
<modfolder>/conf.<format>
- Minetest configuration:
minetest.conf
Formats
- Lua, with the environment being the configuration object
field = value
works- Return new configuration object to replace
- Single Lua literal
- Booleans, numbers, strings and tables
- Minetest-like configuration files
- Not recommended