help create mod

fullbuster93
Member
 
Posts: 22
Joined: Tue Apr 24, 2012 19:33

help create mod

by fullbuster93 » Sat Apr 28, 2012 19:12

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
 

tinoesroho
Member
 
Posts: 570
Joined: Fri Feb 17, 2012 21:55

by tinoesroho » Wed May 02, 2012 03:26

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
Last edited by tinoesroho on Wed May 02, 2012 22:05, edited 1 time in total.
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/
 

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

by Trenton » Wed May 16, 2012 11:02

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 ^^
Sorry for my poor english

>I'm still testing my mod. if you wanna help me contact me =)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 13 guests

cron