Advertisement
TheInstitutions

Items With Forge

Sep 16th, 2012
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public static Item youritem;
  2.  
  3.  
  4.  
  5. youritem = new ItemTutorial(550).setIconIndex(1).setItemName("youritem");
  6.  
  7. LanguageRegistry.addName(youritem, "Your Item");
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. package Tutorial.common;
  17.  
  18. import net.minecraft.src.CreativeTabs;
  19. import net.minecraft.src.Item;
  20.  
  21. public class ItemTutorial extends Item
  22. {
  23. public ItemTutorial(int i)
  24. {
  25. super(i);
  26. maxStackSize = 64;
  27. this.setTabToDisplayOn(CreativeTabs.tabMaterials);
  28. }
  29.  
  30.  
  31. public String getTextureFile(){
  32.  
  33. return "/SpriteSheet.png";
  34.  
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement