Advertisement
LamboSV

mod_CyborgCreeper

Mar 31st, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.88 KB | None | 0 0
  1. package CyborgCreeperPackage;
  2.  
  3. import java.awt.Color;
  4. import java.util.Map;
  5.  
  6. import net.minecraft.client.renderer.entity.RenderLiving;
  7. import net.minecraft.entity.*;
  8. import cpw.mods.fml.common.Mod;
  9. import cpw.mods.fml.common.Mod.Init;
  10. import cpw.mods.fml.common.Mod.PreInit;
  11. import cpw.mods.fml.common.SidedProxy;
  12. import cpw.mods.fml.common.event.FMLInitializationEvent;
  13. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  14. import cpw.mods.fml.common.network.NetworkMod;
  15. import cpw.mods.fml.common.registry.EntityRegistry;
  16. import cpw.mods.fml.common.registry.LanguageRegistry;
  17. import cyborgcreeper.client.ModelCyborgCreeper;
  18.  
  19.  
  20. @Mod(modid = "cyborgcreepermod", name = "Cyborg Creeper by LamboSV", version = "1.0 by LamboSV")
  21. @NetworkMod(clientSideRequired = true, serverSideRequired = false,
  22. versionBounds = "[1.3]")
  23. public class mod_CyborgCreeper {
  24.  
  25.     @SidedProxy(clientSide = "cyborgcreeper.client.ClientProxy", serverSide = "cyborgcreeper.common.CommonProxy")
  26.     public static CommonProxy proxy;
  27.    
  28.    
  29.     @PreInit()
  30. public void preInit(FMLPreInitializationEvent evt){
  31.        
  32.         }
  33.    
  34.     @Init()
  35.     public void load(FMLInitializationEvent event){
  36.         EntityRegistry.registerGlobalEntityID(EntityCyborgCreeper.class, "CyborgCreeper", 33); //Sets the mobs ID
  37.         EntityRegistry.addSpawn(EntityCyborgCreeper.class, 80, 1, 3, EnumCreatureType.monster); //Put monster for spawning at night, creature for spawning in day and waterCreature for spawning in water.
  38.         LanguageRegistry.instance().addStringLocalization("entity.CyborgCreeper.name", "Cyborg Creeper"); //This sets the mobs in game and egg name
  39.         EntityList.entityEggs.put(Integer.valueOf(33), new EntityEggInfo(33, 00000000, (new Color(0, 201, 87)).getRGB())); //Leave at all 0's for black
  40. }
  41.     //Mob rendering on map
  42.     public void addRenderer(Map map){
  43.     map.put(EntityCyborgCreeper.class, new RenderLiving(new ModelCyborgCreeper(), 0.5F));
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement