2020-12-21 19:59:26 +01:00
2020-12-20 14:39:01 +01:00
2020-02-09 01:39:54 +01:00
2020-02-09 01:39:54 +01:00
2020-12-21 18:23:30 +01:00
2020-03-13 18:13:45 +01:00
2020-12-19 15:31:37 +01:00
2020-12-21 18:23:30 +01:00
2020-12-20 14:39:01 +01:00
2020-12-20 14:39:01 +01:00
2020-12-19 15:31:37 +01:00
2020-12-19 15:13:03 +01:00

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

  1. 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:
    1. json
    2. lua
    3. luon, Lua but without the return
    4. conf
  2. Settings are loaded from minetest.conf and override configuration values

Locations

  1. Default configuration: <modfolder>/conf.lua
  2. World configuration: config/<modname>.<format>
  3. Mod configuration: <modfolder>/conf.<format>
  4. Minetest configuration: minetest.conf

Formats

  1. lua
  • Lua, with the environment being the configuration object
  • field = value works
  • Return new configuration object to replace
  1. luon
  • Single Lua literal
  • Booleans, numbers, strings and tables
  1. conf
  • Minetest-like configuration files
  1. json
  • Not recommended
Description
Modular Multipurpose Minetest Modding Library
Readme 769 KiB
Languages
Lua 100%