help create mod

Posted:
Sat Apr 28, 2012 19:12
by fullbuster93
hello , i post often on the forum , i know .
Its because im a newbie
now , i need some help to create a mod . i've already readen the wiki , but i dont understand
so , can someone explain everything , step by step .
I know , i should post it in an other file , but if i did that , i won't have answers
so , if someone can help me in french , it will awesome , because i have some probleme with english
thanx

Posted:
Wed May 02, 2012 03:26
by tinoesroho
fullbuster,
I'm not good with french, but I can help you somewhat - with Google translating, I'm not sure how well it will come out.
Save code in init.lua Enregistrer le code dans init.lua Put init.lua in /game/mesetint/mods/yourmod/
Mettre en init.lua /game/mesetint/mods/yourmod/
To make a block:
Pour faire un bloc:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node ("modname:block", {
drawtype = draw,
description = "Block",
tile_images = {"default_wood.png"},
inventory_image = {"default_wood.png"},
sunlight_propagates = true,
paramtype = 'light',
walkable = false,
material = minetest.digprop_constanttime(1.0),
})
Replace modname with a name (I went with block), and name your block. Fill out description. Replace the words default_wood.png with your chosen image. You can make it solid by changing walkable = false to walkable = true. Don't forget the comma if you change it.
Remplacer modname avec un nom (je suis allé avec bloc), et nommez votre bloc. Remplissez la description. Remplacer les mots default_wood.png avec votre image choisie. Vous pouvez la rendre solide en changeant = walkable = false walkable = true. Ne pas oublier la virgule si vous le changez.
More coming soon

Posted:
Wed May 16, 2012 11:02
by Trenton
you can download a mod and see how the other code is written and the crafting and other stuff, this may be helpful for doing basic mods, like new blocs ^^