In this tutorial I will be showing you how to create basic items.
If you remember from a previous tutorial [Basic Mod File] we created out Forge Subscribe methods. We are going to be adding to the init method below.
First we need to add our ItemLoader class to our init method.
Next we are going to need to create the ItemLoader Class.
So now we have our ItemLoader Class, but it is not ready to add any items yet we still have a few things to add.
What your current ItemLoader Class should look like:
Next we add our loadItems and registerItems methods to our ItemLoader Class.
Your ItemLoader Class should look like this now, if so then we can add our first basic item.
We are going to be adding a item called TutIngot. We need to add the following to the ItemLoader Class.
Don't forget to import "net.minecraft.item".
Next, you need to add the following to the loadItems method.
Next, you need to add the following to the registerItems method.
Don't forget to import
So our ItemLoader Class should look like this now.
Next, we need to create our item class.
So if we launch Minecraft we should see our basic item in our custom creative tab.