205
Ok guys! im back with another modding tutorial! sorry its been so long, I've just been working really hard on my solar system mod, but last night i just got back from this major event, and i slept till like 12:00 PM so today i think im just going to sit on the couch and do modding tutorials!
Item Code
put this at the top of your mod right below the extends base mod bla blabla, put this code the variables section wich is two lines below that.
public static final Item Test = new Item(5001).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("test.png");
put this in your load method:
ModLoader.addName(test, "test");
You've just created your item!
public static final Item Test = new Item(5001).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("test.png");
put this in your load method:
ModLoader.addName(test, "test");
You've just created your item!
Video Tutorial
Tags |
tools/tracking
2318732
6
modding-tutorial-episode-2---basic-items
Create an account or sign in to comment.