Wuppy’s Minecraft Forge Modding Tutorials for 1.7: Updating 1.6 to 1.7 Part 4: Items

In this tutorial I will show you how to update your Items to 1.7. This is the Item file we will start with.

Updating Items to 1.7 is similar to updating Blocks. Start by removing the id from the constructor parameters and the super. This will get you an error in this line of the mod file.

To fix the errors you will have to empty the parameters. Also cut the setUnlocalizedName method and paste it in the constructor just below the super line. The line in the mod file will now look like this.

Next up, add an @Override above every single method overwritten from Item, which is every single one in this file.

Another thing you will have to do is replace Icon with IIcon and IconRegister with IIconRegister.

Just like in Blocks, you will now get an error under getSubItems which can be fixed by changing the first parameter from an int to an Item. Also add the @SuppressWarnings annotation above the method just like you did in the Block.

The Item file will now look like this.

In the next tutorial I will show you how to update your WorldGen to 1.7.

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