Advertisement
Guest User

Post new item

a guest
Sep 8th, 2014
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.24 KB | None | 0 0
  1. package sonicscrewdriver;
  2.  
  3. import net.minecraft.item.Item;
  4. import cpw.mods.fml.common.Mod;
  5. import cpw.mods.fml.common.Mod.EventHandler;
  6. import cpw.mods.fml.common.event.FMLInitializationEvent;
  7. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  8. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  9. import cpw.mods.fml.common.registry.GameRegistry;
  10.  
  11. @Mod(modid = "ss", name = "Sonic Screwdriver", version = "1.0")
  12. public class Sonic_screwdriver {
  13.    
  14.     public static Item itemsonicscrewdriver;
  15.     public static Item itemsonicbase;
  16.    
  17.     @EventHandler
  18.     public void preInit(FMLPreInitializationEvent event) {     
  19.        
  20.         itemsonicscrewdriver = new ItemSonicScrewdriver().setUnlocalizedName("ItemsonicScrewdriver").setTextureName("ss:itemsonicscrewdriver");
  21.         GameRegistry.registerItem(itemsonicscrewdriver, itemsonicscrewdriver.getUnlocalizedName().substring(5)); {
  22.            
  23.         itemsonicbase = new Itemsonicbase().setUnlocalizedName("Itemsonicbase").setTextureName("ss;itemsonicbase");
  24.         GameRegistry.registerItem(itemsonicbase, itemsonicbase.getunlocalizedname().substring(5)); {
  25.         }
  26.    
  27.    
  28.     @EventHandler
  29.     public void init(FMLInitializationEvent event) {
  30.        
  31.     }
  32.    
  33.     @EventHandler
  34.     public void PostInit(FMLPostInitializationEvent event) {
  35.        
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement