
- Minetest modding api mod#
- Minetest modding api full#
- Minetest modding api android#
- Minetest modding api mods#
The game mechanics of Minetest are similar to those of the 2009 game Minecraft, though the original author stopped just short of describing it as a " Minecraft clone".
Minetest modding api mods#
Depending on the game selected and mods present, players can fight computer-controlled " mobs", as well as cooperate with or compete against other players in the same world.
Minetest modding api full#
In the default game of Minetest, Minetest Game (MTG for short), players explore a blocky, procedurally-generated 3D world spanning approximately 31 000 full nodes (blocks) in each direction, and may discover and extract raw materials, craft tools and items, and build structures and landscapes. It is cross-platform, being available for Linux-based systems, FreeBSD, Microsoft Windows, MacOS, and Android.

Minetest provides an API for users to write their own games and mods written in Lua. It is written primarily in C++ and makes use of the Irrlicht Engine. Minetest is a free and open-source sandbox video game and game creation system with focus on voxel graphics.
Minetest modding api android#
You should the print function so you know how far Minetest gets in a program.Linux, FreeBSD, Microsoft Windows, MacOS, Android LUA has a function called "print" and it displays a message to the console. The Console is the black window with writing in that appears when Minetest runs. Pos.y=pos.y+1 -This line increases the position's y axis by 1 Seperated by commas )Īlso you should check your work and put comments in tile_images: Sets the texture of the block You can use only 1 texture or multiple textures,.
Minetest modding api mod#
It takes 2 Parameters: The name of the new block ("tutorial:decowood", the string before : MUST be the name of the mod folder) and a table with several properties of the block. The function minetest.register_node(name, table) is responsible for adding new blocks to the game (node=block, but also torches, rails. To grant yourself the "give" privilage, go to worlds/gamename/auth.txt and open it.Īdd ",give" after "shout,interact" to make it "shout,interact,give" The "give" privilage is required for the /giveme command to work This will add 99 blocks of the decorative wood to your inventory! Let's try out our first mod! Open the chat window ingame (press t) and enter "/giveme tutorial:decowood 99" (Without "" of course). This means when changing the code you simply have to 'Exit to Menu' and 'Start Game/Connect' again to try out the changes.

Try it) Launch the game now, and notice that the mods are automatically loaded and compiled. So for example, default:dirt is the unique name for dirt.Ģ) Copy the file 'tutorial_decowood.png' supplied with this Document to the textures folder in the mod.

In this case, the mod is called 'modname' (name is preset by the folder name)Īnd the block is called 'itemname', so it's tutorial:decowood. In minetest, each node, tool and item needs a unique name to identify it in the api.

The type of the object is important as it plays a part in the properties of that object.
