For this we will create a and define our block there. The contents of mod.conf will look like thisĭescriptions = Thej own mod add a new brink called squares Our module is dependent only on 'default' mod. mod.conf is a simple key value configuration file. We will create a new mod called 'thej', so start with creating a folder called 'thej' under mods folder, i.e ~/.minetest/mods/thej and then create a mod.conf file to define our mod. With that let's start our first mod which is just an introduction of a new block type into the game. You can try this 15 mins tutorial if you are short on time. sounds folder with sound - if you want sound filesīefore you start writing your first mod, please do know all the mods are written in Lua Scripting language.textures folder with images - If you want images as part of your game.For modern version he dependency is part of mod.conf depends.txt - To be compatible with 0.4.x you need to mention other mods your mod depends on.mod.conf - Not a must but it's good to have.With expanded mods folder with two mods mod_1 and mod_2 this is how your ~/.minetest folder will lookĪs you see mod_1 has couple of folders and files. Usually installing mod means copying the mod code to this folder. The mods are stored inside the mod folder i.e ~/.minetest/mods/ each mod will have its own folder under mods. On Ubuntu, Minetest configurations are stored under users home folder - ~/.minetest. You can restart by selecting the same world. At any point you can exit by pressing ESC key.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |