Modding 1.5: Updating to 1.6.2

In this tutorial I will show you how to update the tutorial mod from 1.5 to 1.6.2.
The first thing you will have to do is install the new version of forge. Since you already have the 1.5 one, you should know how to do this and I won’t explain it again. Note: installing forge now takes way longer, because all the images, sounds and libraries that used to be in minecraft now have to be downloaded separately. You can also use scale to make mods which also requires a couple more files.
The next step is to copy over the source code from your old mcp into the new one. To do that you have to go to /forge/mcp/src/minecraft in there should be a folder with the name tutorial, or what the package name for your mod is. Copy this folder into the same location of the new mcp.
Now that the code is into the new mcp you will have to switch over the Eclipse workspace, which can be done on the top left of the screen or, if you haven’t disabled it on startup. Make sure you select the eclipse folder inside of mcp and you will see pretty much the same screen as before. The only difference is that you are now in 1.6.2 instead of 1.5.

If you have exactly the same code as the tutorial you will see that there isn’t a single error. If you have some errors, you may want to look at this list. On there are most of the method name changes. If your error is not on there check the vanilla files. When you can’t find them yourself you can email me, comment here or post a reply on the tutorial thread and I will have a look/ask around to find out what it has changed into.

There may not be any errors in the code, but there are some changes you will have to make. First of, you have to change the modid to no longer have any capital letters in it. If you use the modid anywhere, but you aren’t using the variable, for example: “mods/YourName_ModName/textures/items/tex.png” you will also have to change it in there manually, but you should be using the variable for it. Next step of updating is to copy over the textures, but there are some changes you will have to make.
1. Change /mods/ into /assets/
2. Change the /modid/ you had into the new one without the capital letters
Now copy the folder structure into /forge/mcp/src/minecraft. Paste the assets folder in there and your textures will be ported over to the new structure.

If you look into your mod file you will see that there is a line though @Init. To fix that you have to change that into @EventHandler.

That is everything you have to change for a working mod in 1.6.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">