Modding 1.4.6: Updating to 1.4.6

In this tutorial I will show you how to update your 1.4.2/1.4.5 mods to version 1.4.6.
It is pretty hard to make a tutorial about this, but I did try. If you don’t understand anything watch my youtube video or leave a reply over here.

This is what you need to do:
Set-Up
– Download MCP and Forge for 1.4.6
– Extract MCP into a folder
– Extract Forge into the MCP folder
– Make sure you have a folder named ‘forge’ between eclipse and jars
– Enter the forge folder and hit install
– This will download, decompile and do everything else for you

Copying files
– Go to your old MCP folder
– Enter the src folder
– Go to the common folder
– Copy over the folder with your mod name
– Go to your new MCP folder
– Enter the src and minecraft folder
– Paste the folder with your mod name in here.
– Again go to your old MCP folder and copy the folder with your mod name in the minecraft folder
– Again go to your new MCP folder and paste them in the same place as the other files
– You will get a popup from windows asking if you want to combine the folders. Click yes
– Open eclipse like you did before, but in the new MCP folder

There are a lot of new packages in the 1.4.6 version. There is no longer a common and a client folder, but it’s all into 1 now.

Fixing your mod
Get all the files from your modname.client and paste them in the modname.common package.
Right click the client package and delete it.
Right click the common package and click refactor and rename. The new name should simply be modname (so remove the common).
Enter your Block/Item/Entity files (not your mod file just yet) and press Ctrl, Shift, O. When it asks you ‘Organize Imports’ make sure to select the net.minecraft file and not from any other package.
Enter your mod file and press Ctrl, Shift, O

If you have a block in your mod there is a small change you will have to make. This is the code from 1.4.5 from registering a block.


GameRegistry.registerBlock(tutorialBlock);


There should be a line through the registerBlock part. This means that the method is Depricated and should no longer be used. To fix this you have change it into this.


GameRegistry.registerBlock(tutorialBlock, “YourName_tutorialBlock”);


You don’t have to do the your name part. It can also be your mod name or something like that. The important thing is that it has to be something unique. If there is any other mod that has a block with the same name you will get errors.

Another thing you should change is this.


@SidedProxy(clientSide = “Tutorial.client.ClientProxyTutorial”, serverSide = “Tutorial.common.CommonProxyTutorial”)


It should be changed into something like this.


@SidedProxy(clientSide = “tutorial.ClientProxyTutorial”, serverSide = “tutorial.CommonProxyTutorial”)


This is because you changed the location of the Client and Common proxy.

If there are any more errors leave a reply over here.

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="">