The API documentation is also available in a machine-readable format that developer tools can use. For example, positions or crafting ingredients. Concepts: Lua table formats that some of the API functions expect or return.The following data types are used across the API: Looking at console log or debug log output should give you the deprecation warnings that your mod throws. General libraries and functions that Factorio provides or changes. As Minetest develops, some API functions fall out of use and become deprecated in favour of newer functions with different names. 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. It is, however, not available inside handlers registered with LuaBootstrap::on_load. This is the main object, through which most of the API is accessed. 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. Publish your mods on the forums, and contribute to others mods. You can use the built-in plugin manager or manually upload them with. 4xx status codes will be thrown on unsupported authentication type, invalid access token, or other errors. isauthenticated: True on successful API authentication username: Username of the user authenticated as, null otherwise. GET /api/whoami/: JSON dictionary with the following keys. Modding tutorials Minetest Modding Book by rubenwardy with editing by Shara. The official Lua API documentation can be found at luaapi.txt or in HTML format here. Creating mods Mods are written in the scripting language Lua. 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. Modding API Use the same Lua API to make mods for any Minetest-based game. You can simply install as many plugins or mods as you desire to your Minecraft Server. Tokens can be attained by visiting Settings > API Tokens. To manually install content for Minetest see also Installing Mods and Installing Client-Side Mods. The prototypes are documented on the wiki: Prototype definitions In Minetest, forms are windows like the Inventory which allow you to move your mouse and enter information. The data stage is used to set up the prototypes of everything in the game. A formspec is the specification code for a form.The mod settings are documented on the wiki: Tutorial:Mod settings The settings stage is used to set up mod configuration options.Provide API server in Minetest to allow Python and Sonic Pi to manipulate the world in the server. In general, the Factorio API consists of 3 phases: Minetest mod - (most of) Raspberry PI Minecraft API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |