Tutorial - Creation of an item

In this part we're going to add a platinum ingot.

Let's create a platinum ingot item. Firstly, copy the platinumIngot.png file to the assets/tutorial/textures/items directory.
Now, create a file in the item directory for the attributes of the item. Name it platinumIngot.js and add the following lines to it:

name = "platinumIngot";
creativeTab = "materials";
maxStack = 64;

addToCreative[0] = true;
textureFile[0] = "platinumIngot.png";

Items can have up to 32 metadata versions (0 to 31). For example, you can have 32 different ingots in one item file. But notice that damageable items, like tools, can't have metadata versions.

Add the following line to the en_US.lang file:

item.platinumIngot0.name=Platinum Ingot

And last but not least, add the item to the mod.js file:

mod.addItem("platinumIngot.js", "normal");

That's it. You'll find the ingot in the materials tab in the creative inventory.
Continue with: Adding a smelting recipe