PARTICIPANT IN A FINALISTS JAM
This Blog is an entry in the completed Minetorials : Tutorials with a Minecraft Theme.

Minecraft Blogs / Tutorial

Minecraft Modding - Making an Item 1.2.5! (Contest)

  • 772 views, 2 today
  • 2
  • 0
  • 8
kiefaber123's Avatar kiefaber123
Level 48 : Master Taco
117
Ok, today I am here to talk to you about modding tutorials. In this tutorial we will cover - Getting the supplies needed, setting up MCP, the basics of eclipse, then creating an item! The item I will create will be a cup. So let's get started!



1. First, you must goto the eclipse website and download that, it is free http://www.eclipse.org/downloads/index-developer.php. Download the Eclipse IDE for Java EE Developers, N/A version on the right it has the downloads button(s) click the 32-bit for 32 bit, and the 64-bit for a 64 bit version.

2. Now you need MCP, goto google, type MCP 62 download then download it it isn't hard at all.

3. Also, if you don't have this witch you probably do, goto the Java website and get Java 7.

4. And a picture edditing/creating program such as: Photoshop, paint.NET, or anything that handles transparency.

most programs do, DO NOT USE MSPAINT.

---------------------------------------------------------------------------------------------------------------

Now that you have all the tools, we can setup MCP the first thing you need to do is after donwloading it, take it from the .zip folder and put it into a folder named MCP, or the name of the mod you want todo. Now, go into the folder the has the bin folder. You can find that by going to the start button on the taskbar and then type %appdata% then press enter. No that you have done that, you can find you're .minecraft folder, open it, then inside you will see bin, resources, and some other folders, copy the "bin", and the "resorces" folders, paste them in the folder called "jars" in the MCP folder. Now you go back the the main folder of MCP and run the "decompile.bat" file. It will say that there is 1 error, that's fine. You're done with that!

---------------------------------------------------------------------------------------------------------------

Now you can learn the basics of eclipse, they are fairly easy. Open it up, it will ask to select a workspace. click "browse" then find the MCP folder, now open the MCP folder and find the folder inside of it called "eclipse" click it then press "ok". Now when eclipse opens up click (on the left) "client", then "src", then "net.minecraft.src".That is allllll the stuff in minecraft DO NOT MESS WITH IT. To open one and look at the stuff, double click one of the files.To create you're own file press the little green button at the top that says "c" witha plus in the corner. That is basicly all you need.

---------------------------------------------------------------------------------------------------------------

Time to start creating you're mod! First off, you need to press the create a class button, then name the classs "mod_ANYTHING" you can replace anything with... whatever you want! (Do not use .><?/';[]!@#$%^&*()_+) <--- That's it. So, whenever you create a mod, that is you're base class, the first class ALWAYS you want to make. Once you have done that, click ok. OK now you will get a screen that has some writting, it will say like, package minecraft.net.src and some other stuff. were it says "mod_ANYTHING{" you want to type extends BaseMod after that. so you will have ---> "mod_ANYTHING extends BaseMod{" OK now that you have that, you will get an error under the "mod_ANYTHING" hover you're mouse over that "word" and click "add unimplemented methods" now you get allot of stuff, don't be overwelmed. It's ok no siezure today.Anyways, now that you have allll this you need to start creating you're item, like I said earlier I will make a cup.Now, create a new clsas name it "ItemCup" Whenever you create an Item it must start with the word "Item" then after item you can put whatever you want, it doesn't need capital, and it can't have ---> (/<>,."';:|][+_)(*&^%$#@!-=) Alright? Ok, now that you have that class, after the "public class ItemCup {" statment, type extends Item, like so ---> "public class ItemCup extends Item {" <---- BE SURE TO HAVE CAPITALS WERE I DO!!!! Now that you have that, you will have another error, hover over that with you're mouse and click "add constructor" then you will have some more what not, forget it you don't need to touch that class ANYMORE!Go back to you're mod_ANYTHING class and under the "public class mod_MoFood extends BaseMod{" put allot of space, so you know that is were we do some coding. Now, were you put the space you need to type ---> "public static final Item ItemCup = new ItemCup(ITEM ID).setItemName("cup")" Ok, were is says "ITEM ID" put any number above 375. That would be the safest way to go. So after you have all that you can add some cool stuff to it, like ".setMaxStackSize(NUMBER)" were it says number, obviously you put a number, but I'm not sure if it CAN or CAN'T be higher than 64, you would have to test that you'reself. OK, so now that you have done that, you need to set the in game name for the item the ".setItemName("cup")" wasn't setting the IN GAME name it's just the name minecraft will use to run. OK we are almost done, so setting the in game name is extremely easy. OK so were you see the:

}

}

Make some space above those and type "ModLoader.addName("ItemCup", "Cup");" Of course, you change cup to whatever. Now you need to open up GIMP or paint.NEt or Photoshop, create you're texture and all of that.Be sure the texture is a .png file, and preferably the name of you're item, I would name my texture "cup.png" only you wouldn't see the ".png". Ok so now that you have done all of that you need to put the texture into Eclipse for testing purposes, just click on you're picture and press "CTRL+C" put not the "+" just Control c or right click it, then press "Copy". Then open eclipse, find the "net.minecraft.src" folder you opened earlier on the left. Click it then press "CTRL+V" or right click it then press "Paste". Ok so now once you scroll alllll the way down and you will see "cup.png" ok. Good, now go back to the mod_ANYTHING and we will put the texture onto the item. So were you last made the space you want to type (under the new name for the item) ---> "ItemCup.iconIndex = ModLoader.addOverride("/gui/items.png", "cup.png");

That is just overriding the /gui/items.png picture, for the texture that you have. Now you need to add a crafting recipe, this is quite easy. just type ---->



ModLoader.addRecipe(new ItemStack(ItemCup, 1), new Object[]{ (<---- That means you get ItemCup, and you get 1. you can change the 1 to whatever number)
"bbb", "bbb", "bbb", (<---- You can change to you're liking.)
'b', Block.dirt (<-- That means that b is dirt)

});

So the way I put my crafting the whole crafting table will be filled with dirt to make a cup.... lol.

---------------------------------------------------------------------------------------------------------------
NOW You are DONE! YOU CAN PRESS THE LITTLE GREEN PLAY BUTTON AT THE TOP TO TEST IT! If you have any errors, Comment the Source code and I will fix it.
Tags

Create an account or sign in to comment.

1
07/28/2012 5:28 pm
Level 42 : Master Blob
Prettzel
Prettzel's Avatar
Why is it that the day after I say I don't know how to code, you set up a modding tutorial........And then tell me on my blogs.........
Let me guess.
You really want to be a modding team......
1
07/28/2012 5:33 pm
Level 48 : Master Taco
kiefaber123
kiefaber123's Avatar
LOL, I do but this is also for others too read, otherwise I would have commented on you're blog with all of this :3
1
07/28/2012 5:39 pm
Level 42 : Master Blob
Prettzel
Prettzel's Avatar
lol you already did.......
1
07/28/2012 5:41 pm
Level 48 : Master Taco
kiefaber123
kiefaber123's Avatar
I mean all of this

Ok, today I am here to talk to you about modding tutorials. In this tutorial we will cover - Getting the supplies needed, setting up MCP, the basics of eclipse, then creating an item! The item I will create will be a cup. So let's get started!





1. First, you must goto the eclipse website and download that, it is free http://www.eclipse.org/downloads/index-developer.php. Download the Eclipse IDE for Java EE Developers, N/A version on the right it has the downloads button(s) click the 32-bit for 32 bit, and the 64-bit for a 64 bit version.


2. Now you need MCP, goto google, type MCP 62 download then download it it isn't hard at all.


3. Also, if you don't have this witch you probably do, goto the Java website and get Java 7.


4. And a picture edditing/creating program such as: Photoshop, paint.NET, or anything that handles transparency.


most programs do, DO NOT USE MSPAINT.


---------------------------------------------------------------------------------------------------------------


Now that you have all the tools, we can setup MCP the first thing you need to do is after donwloading it, take it from the .zip folder and put it into a folder named MCP, or the name of the mod you want todo. Now, go into the folder the has the bin folder. You can find that by going to the start button on the taskbar and then type %appdata% then press enter. No that you have done that, you can find you're .minecraft folder, open it, then inside you will see bin, resources, and some other folders, copy the "bin", and the "resorces" folders, paste them in the folder called "jars" in the MCP folder. Now you go back the the main folder of MCP and run the "decompile.bat" file. It will say that there is 1 error, that's fine. You're done with that!


---------------------------------------------------------------------------------------------------------------


Now you can learn the basics of eclipse, they are fairly easy. Open it up, it will ask to select a workspace. click "browse" then find the MCP folder, now open the MCP folder and find the folder inside of it called "eclipse" click it then press "ok". Now when eclipse opens up click (on the left) "client", then "src", then "net.minecraft.src".That is allllll the stuff in minecraft DO NOT MESS WITH IT. To open one and look at the stuff, double click one of the files.To create you're own file press the little green button at the top that says "c" witha plus in the corner. That is basicly all you need.


---------------------------------------------------------------------------------------------------------------


Time to start creating you're mod! First off, you need to press the create a class button, then name the classs "mod_ANYTHING" you can replace anything with... whatever you want! (Do not use .>
1
07/28/2012 5:51 pm
Level 42 : Master Blob
Prettzel
Prettzel's Avatar
Lol once again.....you already did.
1
09/13/2012 10:33 pm
Level 48 : Master Taco
kiefaber123
kiefaber123's Avatar
What's good waters? I haven't seen anything new of you're check out my new blog post so you can be up to date with me, just to make suer you know I haven't forgotton or stoped caring about you, ya know not reading you're posts and commenting and such like that.



(Edit 1) ALSO If there are spelling mistakes sorry, it's 11:30 and I don't have contacts in ;) I'll be sure to putem in soon, thanks for reading.
1
07/28/2012 5:26 pm
Level 42 : Master Blob
Prettzel
Prettzel's Avatar
Hmmmm.....suspicious.......
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome