Under circumstances (abandoned, author not responsive etc.) we will considerįorks.
MINETEST MOD MOD
The original author of the Mod should be the one submitting it to the minetest-mods
MINETEST MOD MODS
Mods here should be stable (at least in the master branches).Īll mods should work well together. To understand it, you should know what a position variable in Minetest is a table made up out of 3 values: x, y and z.This project exists to provide a semi-trusted source of Minetest Mods. You should already know everything else but the line pos.y=pos.y+1.
Minetest.register_node("tutorial:decowood", ) Next, create a file called a and paste in the following: We are going to make a mod that adds a special kind of wood that can only be used for decoration.įirst, create a folder called tutorial in the Minetest mods folder (see Installing Mods on the Minetest Wiki). See lua_api.txt for up to date information about mod files. This file is used if there is no description in mod.conf.
It should be 3:2 with a minimum size of 300x200px. screenshot.png - Screenshot of your mod (used by mod managers).Like a dependency, but no error if the mod doesn't exist. optional_depends: A comma separated list of optional dependencies. These are mods that must be loaded before this mod. depends: A comma separated list of dependencies. Further information can be put into other sentences. The first sentence should be less than 100 characters. description: A description of your mod to be shown in the Mods tab of the main menu (also used by mod managers). Allows Minetest to determine the mod name even if the folder is wrongly named. mod.conf - A key-value store of mod details:.The following describes the folder structure of a mod. In this tutorial, we will make the node tutorial:decowood.įor example, default:dirt is the unique name for dirt. In this case, the mod is called modname (name is preset by the folder name) and the block is called itemname. The name's format is like this: modname:itemname. Craftitem ( minetest.register_craftitem): A miscellaneous item.Įach Node, Tool and Craftitem needs a unique name to identify it in the API.Tool ( minetest.register_tool): A tool/weapon that can dig and damage things according to tool_capabilities.Node ( minetest.register_node): A block from the world.The type of the object is important as it plays a part in the properties of that object. There are the three types of object that can be defined in Minetest. Modding Overview Types of objects in Minetest