Page 1 of 1

i am new i dont know how to modmake

PostPosted: Sat Oct 06, 2012 12:16
by Nightfighter
i dont know how to mod make can some everything about modmaking plz???!!!
someone help i really am a new and i spoilt my bros mod because i wanted to make a mod but i did not know how so help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ps:my bro is aqua....

PostPosted: Sat Oct 06, 2012 12:21
by PilzAdam
Nightfighter wrote:i dont know how to mod make can some everything about modmaking plz???!!!
someone help i really am a new and i spoilt my bros mod because i wanted to make a mod but i did not know how so help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ps:my bro is aqua....

Read this: https://github.com/celeron55/minetest/blob/master/doc/lua_api.txt

PostPosted: Sat Oct 06, 2012 13:28
by Topywo
You can use this tutorial: http://www.tinyurl.com/mt-tut

Chapter 2 --> copy paste the next lines in the init.lua instead of the ones from given example. The example uses deprecated commands:

minetest.register_node("tutorial:decowood", {
tiles = {"tutorial_decowood.png"},
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
})

After the tutorial, to learn a bit of lua, use the code from the init.lua in the default folder/directory and later on the code from the init.lua from other mods.

To make textures use a painting program. Better start with 16 x 16 textures. Easiest is to open a texture (they are called .png) from the textures folder that's in the default folder change it and use 'save as' to save it in your mod's texture's folder.

To be safe, make a copy of minetest to a folder named something like "celeron55-minetest-9696ed3-nightfighters mods". Don't forget to check (put on) the hidden files view, you'll need those. That way you can test whatever you like, without disturbing your brother.

Have fun!

PostPosted: Sat Oct 06, 2012 13:44
by Nightfighter
Thx i will look at it

PostPosted: Sun Oct 07, 2012 04:02
by Josh
Nightfighter if you are still having trouble modding you can have a look at my Decoplants mod: http://minetest.net/forum/viewtopic.php?id=3151. You can browse the code to get the basic idea of a mod.

PostPosted: Tue Nov 06, 2012 06:29
by Nightfighter
i cant get notepad ++ it doesnt work and thats the only one i know that can modmake. any other ideas ??????

PostPosted: Tue Nov 06, 2012 09:22
by Topywo
Nightfighter wrote:i cant get notepad ++ it doesnt work and thats the only one i know that can modmake. any other ideas ??????


I think you can use any text editor or word processor to write mods.

Most direct: get a mod and doubleclick on the init.lua. You can now change the content.

Edit: Typo

PostPosted: Thu Nov 15, 2012 05:47
by Nightfighter
thx
but now ther is something else its the textures i cant put what i draw to put it inwhat mod i want to make help me!

PostPosted: Thu Nov 15, 2012 19:23
by Nubelite
It would be more helpful if you put the file in a zip folder and put it online. that way those trying to help can take a look at exactly what is going on to better help you out. git-hub works well, they can take a look at the code and file setup without downloading anything.

PostPosted: Sat Nov 24, 2012 00:29
by Nightfighter
ohh new question and thx
anyway how do you make the init crafting it does not on mine

PostPosted: Sat Nov 24, 2012 00:36
by InfinityProject
For crafting you do this:
Code: Select all
minetest.register_craft({
    output = 'example:example',
    recipe = {
        {'', '', ''},
        {'', '', ''},
        {'', '', ''},
    }
})


The output is what the recipe will give you. Put a number after it to make it give you more than 1 of the item.
Inside the recipe there are 9 sets of quotation marks set up like the crafting grid inside the game. Put the ingredients you need to make the item in here.
For instance, the recipe for a mese pick:

Code: Select all
minetest.register_craft({
    output = 'default:pick_mese',
    recipe = {
        {'default:mese', 'default:mese', 'default:mese'},
        {'', 'default:stick', ''},
        {'', 'default:stick', ''},
    }
})

PostPosted: Sat Nov 24, 2012 10:16
by Ragnar
hey InfinityProject!
i know a littlebit of C++, so maybe we could make a helping program :D
you tell me the codes, and i'll make the program :D