11/12/2023 0 Comments Minetest methodsThe 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. Craftitem (register_craftitem): A miscellaneous item.Tool (register_tool): A tool/weapon that can dig and damage things according to tool_capabilities.Node (register_node): A Block from the world.Here are the three types of items you can define in Minetest: Basic Programming Knowledge, ideally in the Lua Language ( learn)Ĭhapter 1 - Modding basics Types of objects in Minetest.This ScriptAPI is accessed using an easy-to-use programming langauge called Lua. Minetest has a ScriptAPI (Applictation Programming Interface), which is used to program Mods (Modifications) for the game, extending its features and adding new items. Minetest-c55 is a Minecraft clone, developed by the Finnish programmer 'celeron55' and contributors. Chapter # - Exceptions, Bugs, and the print function.Chapter 4 - ABM Basics and the Position Variable.Chapter 1 - Modding Basics and Required understanding.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |