The API documentation is also available in a machine-readable format that developer tools can use. Lastly, Minecraft (the desktop version) is written in Java. There are over 1100 open source mods on ContentDB, which are ready to be used, adapted or learned from. Publish your mods on ContentDB, and contribute to others’ mods. Because mods are written in Lua, they will always be open and have the source code available for the user. Modding Overview - Minetest Developer Wiki Modding Overview See Navigation menu Log in Page Discussion Read View source View history This page was last edited on 16 August 2022, at 02:12. Use the same Lua API to make mods for any Minetest-based game. With modding being its primary goal, this will always be the case. For example, positions or crafting ingredients. Since this project uses Minetest as a base, the modding API is extensive and well documented. Concepts: Lua table formats that some of the API functions expect or return.The following data types are used across the API: General libraries and functions that Factorio provides or changes. The global dictionary, useful for storing data persistent across a save-load cycle.Ĭontents of the defines table, which contains symbolic constants used throughout the API. Provides an interface for registering event handlers.Īllows inter-mod communication by way of providing a repository of interfaces that is shared by all mods.Īllows registering custom commands for the in-game console accessible via the grave key.Īllows printing messages to the calling RCON instance if any.Īllows rendering of geometric shapes, text and sprites in the game world. All of the scripting API functionality is implemented. In Minetest, forms are windows like the Inventory which allow you to move your mouse and enter information. The module would need to be complied against the minetests source code and would produce a shared library (.dll /. It is, however, not available inside handlers registered with LuaBootstrap::on_load. For more information about how mods are loaded, initialized, and the different phases, see Data Lifecycle. A formspec is the specification code for a form. C++ written mod) would be possible to be done in-game, via menu. Minetest is freely licensed ( LGPL 2.1 and others ). The game and mod API uses the Lua language. This is the main object, through which most of the API is accessed. Minetest is written in C++ using a forked version of the Irrlicht rendering engine. To facilitate that, some are provided as global classes. To make any use of the API, therefore, you need to have access to instances of these classes. The classes and events used in this phase are documented here on this website.įor more information about how mods are loaded, initialized, and the different phases, see Data Lifecycle.Īll of the scripting API functionality is implemented via class members. The prototypes are documented on the wiki: Prototype definitions The data stage is used to set up the prototypes of everything in the game. ![]() The mod settings are documented on the wiki: Tutorial:Mod settings The settings stage is used to set up mod configuration options.In general, the Factorio API consists of 3 phases:
0 Comments
Leave a Reply. |