![]() ![]() At this point my folder structure looks like this Then added it under the folder called textures. I created a 16x16 pixel art and then exported into 100px X 100px png image. I created the image using an online tool called piskelapp. To keep it simple, I have used the same image on all sides. A block has six sides and hence one has to define six images in the tiles. That's it, the block is ready to be used.īlockBut wait we have used minetest_block.png in our tiles set. Then we are defining images for the tiles. Here as you can see we are defining an item 4 for the mod thej and name of it is squares. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |