Minetest Lua Modding API Reference¶
- More information at http://www.minetest.net/
- Developer Wiki: http://dev.minetest.net/
- (Unofficial) Minetest Modding Book by rubenwardy: https://rubenwardy.com/minetest_modding_book/
Content and functionality can be added to Minetest using Lua scripting in run-time loaded mods.
A mod is a self-contained bunch of scripts, textures and other related things, which is loaded by and interfaces with Minetest.
Mods are contained and ran solely on the server side. Definitions and media files are automatically transferred to the client.
If you see a deficiency in the API, feel free to attempt to add the functionality in the engine and API, and to document it here.
Programming in Lua¶
If you have any difficulty in understanding this, please read Programming in Lua.
Mods are loaded during server startup from the mod load paths by running
init.lua scripts in a shared environment.
RUN_IN_PLACE=1(Windows release, local build)
RUN_IN_PLACE=0: (Linux release)