Go to file
2021-02-03 12:49:23 +01:00
2021-02-01 16:27:21 +01:00
2020-12-20 14:39:01 +01:00
2020-02-09 01:39:54 +01:00
2020-12-22 11:36:58 +01:00
2021-01-19 15:29:39 +01:00
2021-02-02 10:38:21 +01:00
2020-03-13 18:13:45 +01:00
2020-12-19 15:31:37 +01:00
2021-01-25 21:18:56 +01:00
2020-12-20 14:39:01 +01:00
2021-01-19 13:18:25 +01:00
2021-02-02 23:12:55 +01:00
2020-12-19 15:31:37 +01:00
2020-12-19 15:13:03 +01:00
2021-02-02 15:43:55 +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 782 KiB
Languages
Lua 100%