Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package CyborgCreeperPackage;
- import java.awt.Color;
- import java.util.Map;
- import net.minecraft.client.renderer.entity.RenderLiving;
- import net.minecraft.entity.*;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.Init;
- import cpw.mods.fml.common.Mod.PreInit;
- import cpw.mods.fml.common.SidedProxy;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- import cpw.mods.fml.common.network.NetworkMod;
- import cpw.mods.fml.common.registry.EntityRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- import cyborgcreeper.client.ModelCyborgCreeper;
- @Mod(modid = "cyborgcreepermod", name = "Cyborg Creeper by LamboSV", version = "1.0 by LamboSV")
- @NetworkMod(clientSideRequired = true, serverSideRequired = false,
- versionBounds = "[1.3]")
- public class mod_CyborgCreeper {
- @SidedProxy(clientSide = "cyborgcreeper.client.ClientProxy", serverSide = "cyborgcreeper.common.CommonProxy")
- public static CommonProxy proxy;
- @PreInit()
- public void preInit(FMLPreInitializationEvent evt){
- }
- @Init()
- public void load(FMLInitializationEvent event){
- EntityRegistry.registerGlobalEntityID(EntityCyborgCreeper.class, "CyborgCreeper", 33); //Sets the mobs ID
- 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.
- LanguageRegistry.instance().addStringLocalization("entity.CyborgCreeper.name", "Cyborg Creeper"); //This sets the mobs in game and egg name
- EntityList.entityEggs.put(Integer.valueOf(33), new EntityEggInfo(33, 00000000, (new Color(0, 201, 87)).getRGB())); //Leave at all 0's for black
- }
- //Mob rendering on map
- public void addRenderer(Map map){
- map.put(EntityCyborgCreeper.class, new RenderLiving(new ModelCyborgCreeper(), 0.5F));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement