Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Item youritem;
- youritem = new ItemTutorial(550).setIconIndex(1).setItemName("youritem");
- LanguageRegistry.addName(youritem, "Your Item");
- package Tutorial.common;
- import net.minecraft.src.CreativeTabs;
- import net.minecraft.src.Item;
- public class ItemTutorial extends Item
- {
- public ItemTutorial(int i)
- {
- super(i);
- maxStackSize = 64;
- this.setTabToDisplayOn(CreativeTabs.tabMaterials);
- }
- public String getTextureFile(){
- return "/SpriteSheet.png";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement