Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 7th, 2013  |  syntax: None  |  size: 1.54 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package mod;
  2.  
  3.  
  4. import net.minecraft.client.main.Main;
  5. import cpw.mods.fml.common.Mod.EventHandler;
  6. import cpw.mods.fml.common.Mod.Instance;
  7. import cpw.mods.fml.common.Mod;
  8. import cpw.mods.fml.common.SidedProxy;
  9. import cpw.mods.fml.common.event.FMLInitializationEvent;
  10. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  11. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  12. import cpw.mods.fml.common.network.NetworkMod;
  13. import cpw.mods.fml.common.registry.GameRegistry;
  14.  
  15.  
  16.         @Mod(modid="bluepower", name="Blue Power", version="0.0.1")
  17.         @NetworkMod(clientSideRequired=true, serverSideRequired=false)
  18.  
  19. public class Base{
  20.  
  21.         // The instance of your mod that Forge uses.
  22.         @Instance("bluepower")
  23.         public static Main instance;
  24.        
  25.         // Says where the client and server 'proxy' code is loaded.
  26.         @SidedProxy(clientSide="mod.ClientProxy", serverSide="mod.CommonProxy")
  27.         public static CommonProxy proxy;
  28.        
  29.         @EventHandler
  30.         public void preInit(FMLPreInitializationEvent event) {
  31.                 // Stub Method
  32.         }
  33.        
  34.         @EventHandler
  35.         public void load(FMLInitializationEvent event) {
  36.                 proxy.registerRenderers();
  37.         }
  38.        
  39.         @EventHandler
  40.         public void postInit(FMLPostInitializationEvent event) {
  41.                 // Stub Method
  42.         }
  43.        
  44.        
  45.        
  46.         //Registering Blocks
  47.        GameRegistry.registerBlock(bluestone, "bluestone");
  48.          
  49.        
  50.         //Registering Items
  51.            
  52. }
clone this paste RAW Paste Data