Jump to content

Recommended Posts

Posted

hey, following tutorials and looking at others code I create my own code but have a few errors i don't know what's causing them. The error is within the entity class

 

Main

 

package a.Screens;

 

 

import a.Screens.Entity.EntityKronosDrone;

import a.Screens.models.KronosDrone;

import a.Screens.render.RenderKronosDrone;

import net.minecraft.block.Block;

import net.minecraft.block.BlockBreakable;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EntityEggInfo;

import net.minecraft.entity.EntityList;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.client.registry.RenderingRegistry;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

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.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

 

 

//mod info

@Mod(modid = "Screens", name = "Filming Screens", version = "1.0.0")

//client server

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

 

public class main{

 

//Block  Defining

public static Block Gscreen;

public static Block Wscreen;

public static Block Bscreen;

public static Block Pscreen;

public static Block Light;

public static Block Lightair;

public static Block Ghost;

 

//Define Mob IDs

static int startEntityId = 300;

 

//mobs

public static int getUniqueEnitityId() {

do {

startEntityId++;

}

while (EntityList.getStringFromID(startEntityId) != null);

return startEntityId++;

}

 

public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor) {

int id = getUniqueEnitityId();

EntityList.IDtoClassMapping.put(id,  entity);

EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));

 

}

//event handler

@EventHandler

public void Load(FMLPreInitializationEvent Event){

 

 

      //Block setting

Gscreen = new a.Screens.Gscreen(4004, Material.rock).setUnlocalizedName("Screens:Gscreen");

Wscreen = new a.Screens.Wscreen(4005, Material.rock).setUnlocalizedName("Screens:Wscreen");

Bscreen = new a.Screens.Bscreen(4006, Material.rock).setUnlocalizedName("Screens:Bscreen");

Pscreen = new a.Screens.Pscreen(4007, Material.rock).setUnlocalizedName("Screens:Pscreen");

Light = new a.Screens.Light(4008, Material.rock).setUnlocalizedName("Screens:Light");

Lightair = new a.Screens.Lightair(4009, Material.rock).setUnlocalizedName("Screens:Lightair");

Ghost = new a.Screens.Ghost(4010, Material.rock).setUnlocalizedName("Screens:Ghost");

 

//mob setting

EntityRegistry.registerGlobalEntityID(EntityKronosDrone.class, "Kronos Drone", 1);

EntityRegistry.addSpawn(EntityKronosDrone.class, 10, 2, 4, EnumCreatureType.monster);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityKronosDrone.class, 0x000000, 0x9E4001);

RenderingRegistry.registerEntityRenderingHandler(EntityKronosDrone.class, new RenderKronosDrone(new KronosDrone(), 0.3F));

 

//Block Game Register

GameRegistry.registerBlock(Gscreen, "Gscreen");

GameRegistry.registerBlock(Wscreen, "Wscreen");

GameRegistry.registerBlock(Bscreen, "Bscreen");

GameRegistry.registerBlock(Pscreen, "Pscreen");

GameRegistry.registerBlock(Light, "Light");

GameRegistry.registerBlock(Lightair, "Lightair");

GameRegistry.registerBlock(Ghost, "Ghost");

 

 

 

//Block Language Register

LanguageRegistry.addName(Gscreen, "Green Screen");

LanguageRegistry.addName(Wscreen, "White Screen");

LanguageRegistry.addName(Bscreen, "Blue Screen ");

LanguageRegistry.addName(Pscreen, "Pink Screen");

LanguageRegistry.addName(Light, "Filming light");

LanguageRegistry.addName(Lightair, "Filming light Air");

LanguageRegistry.addName(Ghost, "Ghost Block");}}

 

 

 

 

Entity

 

package a.Screens.Entity;

 

import net.minecraft.entity.EnumCreatureAttribute;

import net.minecraft.entity.ai.EntityAIBreakDoor;

import net.minecraft.entity.ai.EntityAIHurtByTarget;

import net.minecraft.entity.ai.EntityAILookIdle;

import net.minecraft.entity.ai.EntityAINearestAttackableTarget;

import net.minecraft.entity.ai.EntityAISwimming;

import net.minecraft.entity.ai.EntityAIWander;

import net.minecraft.entity.ai.EntityAIWatchClosest;

import net.minecraft.entity.monster.EntityMob;

import net.minecraft.entity.passive.EntityVillager;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.world.World;

 

public class EntityKronosDrone extends EntityMob {

 

public EntityKronosDrone(World par1World) {

super(par1World);

this.experienceValue = 10;

this.tasks.addTask(0, new EntityAISwimming(this));

        this.tasks.addTask(1, new EntityAIBreakDoor(this));

        this.tasks.addTask(5, new EntityAIWander(this, 0.5D));

        this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));

        this.tasks.addTask(7, new EntityAILookIdle(this));

        this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));

        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));

}

protected boolean isAIEnabled() {

return true;

}

public intgetMaxHealth() {

return 20;

}

protected String getLivingSound()

    {

        return "mob.zombie.say";

    }

 

 

    protected String getHurtSound()

    {

        return "mob.zombie.hurt";

    }

 

 

    protected String getDeathSound()

    {

        return "mob.zombie.death";

    }

 

    protected void playStepSound(int par1, int par2, int par3, int par4)

    {

        this.playSound("mob.zombie.step", 0.15F, 1.0F);

    }

   

    public void onLivingUpdate() {

    super.onLivingUpdate();

    }

}

 

 

 

 

render

 

package a.Screens.render;

 

import a.Screens.Entity.EntityKronosDrone;

import a.Screens.models.KronosDrone;

import net.minecraft.client.model.ModelBase;

import net.minecraft.client.renderer.entity.Render;

import net.minecraft.client.renderer.entity.RenderLiving;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EntityLiving;

import net.minecraft.util.ResourceLocation;

 

public class RenderKronosDrone extends RenderLiving {

 

protected KronosDrone model;

 

public RenderKronosDrone(ModelBase par1ModelBase, float par2) {

super(par1ModelBase, par2);

model = ((KronosDrone)mainModel);

}

 

public void renderKronosDrone(EntityKronosDrone entity, double par2, double par4, double par6, float par8, float par9) {

super.doRenderLiving(entity, par2, par4, par6, par8, par9);

}

 

public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9){

renderKronosDrone((EntityKronosDrone)par1EntityLiving, par2, par4, par6, par8, par9);

 

}

 

@Override

public void doRender(Entity entity, double d0, double d1, double d2, float f, float f1) {

renderKronosDrone((EntityKronosDrone)entity, d0, d1, d2, f, f1);

 

}

 

@Override

protected ResourceLocation getEntityTexture(Entity entity) {

return new ResourceLocation("oomod:textures/mobs/daleks/kronosdrone");

 

}

 

}

 

 

model

 

// Date: 20/02/2014 10:41:40

// Template version 1.1

// Java generated by Techne

// Keep in mind that you still need to fill in some blanks

// - ZeuX

 

 

 

 

 

 

package a.Screens.models;

 

import net.minecraft.client.model.ModelBase;

import net.minecraft.client.model.ModelRenderer;

import net.minecraft.entity.Entity;

 

public class KronosDrone extends ModelBase

{

  //fields

    ModelRenderer Fender;

    ModelRenderer Skirt_3;

    ModelRenderer Skirt_2;

    ModelRenderer Skirt_1;

    ModelRenderer Shoulder;

    ModelRenderer arm_1;

    ModelRenderer arm_2;

    ModelRenderer neck;

    ModelRenderer neck_intercept;

    ModelRenderer lower_dome;

    ModelRenderer upper_dome;

    ModelRenderer eyestalk;

    ModelRenderer Lens;

    ModelRenderer plunger;

    ModelRenderer light_1;

    ModelRenderer light_2;

    ModelRenderer bump_1;

    ModelRenderer bump_2;

    ModelRenderer bump_3;

    ModelRenderer bump_4;

    ModelRenderer bump_5;

    ModelRenderer bump_6;

    ModelRenderer bump_7;

    ModelRenderer bump_8;

    ModelRenderer bump_9;

    ModelRenderer bump_10;

    ModelRenderer bump_11;

    ModelRenderer bump_12;

    ModelRenderer bump_13;

    ModelRenderer bump_14;

    ModelRenderer bump_15;

    ModelRenderer bump_16;

    ModelRenderer bump_17;

    ModelRenderer bump_18;

    ModelRenderer bump_19;

    ModelRenderer bump_20;

    ModelRenderer bump_21;

    ModelRenderer bump_22;

    ModelRenderer bump_23;

    ModelRenderer bump_24;

    ModelRenderer bump_25;

    ModelRenderer bump_26;

    ModelRenderer bump_27;

    ModelRenderer bump_28;

    ModelRenderer bump_29;

    ModelRenderer bump_30;

    ModelRenderer Eye;

 

  public KronosDrone()

  {

    textureWidth = 128;

    textureHeight = 64;

   

      Fender = new ModelRenderer(this, 82, 0);

      Fender.addBox(-5F, 0F, -6.5F, 10, 2, 13);

      Fender.setRotationPoint(-5F, 22F, -5F);

      Fender.setTextureSize(128, 64);

      Fender.mirror = true;

      setRotation(Fender, 0F, 0F, 0F);

      Skirt_3 = new ModelRenderer(this, 88, 16);

      Skirt_3.addBox(-4.5F, 0F, -5.5F, 9, 5, 11);

      Skirt_3.setRotationPoint(-5F, 18F, -5F);

      Skirt_3.setTextureSize(128, 64);

      Skirt_3.mirror = true;

      setRotation(Skirt_3, 0F, 0F, 0F);

      Skirt_2 = new ModelRenderer(this, 92, 33);

      Skirt_2.addBox(-4.5F, 0F, -4.5F, 9, 4, 9);

      Skirt_2.setRotationPoint(-5F, 14F, -5F);

      Skirt_2.setTextureSize(128, 64);

      Skirt_2.mirror = true;

      setRotation(Skirt_2, 0F, 0F, 0F);

      Skirt_1 = new ModelRenderer(this, 96, 47);

      Skirt_1.addBox(-4.5F, 0F, -3.5F, 9, 4, 7);

      Skirt_1.setRotationPoint(-5F, 10F, -5F);

      Skirt_1.setTextureSize(128, 64);

      Skirt_1.mirror = true;

      setRotation(Skirt_1, 0F, 0F, 0F);

      Shoulder = new ModelRenderer(this, 47, 0);

      Shoulder.addBox(-4.5F, 0F, -3F, 9, 5, 6);

      Shoulder.setRotationPoint(-5F, 5F, -5F);

      Shoulder.setTextureSize(128, 64);

      Shoulder.mirror = true;

      setRotation(Shoulder, 0F, 0F, 0F);

      arm_1 = new ModelRenderer(this, 32, 8);

      arm_1.addBox(-0.5F, -0.5F, -6F, 1, 1, 6);

      arm_1.setRotationPoint(-8F, 7F, -7F);

      arm_1.setTextureSize(128, 64);

      arm_1.mirror = true;

      setRotation(arm_1, 0F, 0F, 0F);

      arm_2 = new ModelRenderer(this, 32, 0);

      arm_2.addBox(-0.5F, -0.5F, -6F, 1, 1, 6);

      arm_2.setRotationPoint(-2F, 7F, -7F);

      arm_2.setTextureSize(128, 64);

      arm_2.mirror = true;

      setRotation(arm_2, 0F, 0F, 0F);

      neck = new ModelRenderer(this, 60, 12);

      neck.addBox(-2F, 0F, -2F, 4, 3, 4);

      neck.setRotationPoint(-5F, 2F, -5F);

      neck.setTextureSize(128, 64);

      neck.mirror = true;

      setRotation(neck, 0F, 0F, 0F);

      neck_intercept = new ModelRenderer(this, 53, 20);

      neck_intercept.addBox(-3F, 0F, -3F, 6, 1, 6);

      neck_intercept.setRotationPoint(-5F, 3F, -5F);

      neck_intercept.setTextureSize(128, 64);

      neck_intercept.mirror = true;

      setRotation(neck_intercept, 0F, 0F, 0F);

      lower_dome = new ModelRenderer(this, 54, 29);

      lower_dome.addBox(-3.5F, -3F, -3.5F, 7, 3, 7);

      lower_dome.setRotationPoint(-5F, 2F, -5F);

      lower_dome.setTextureSize(128, 64);

      lower_dome.mirror = true;

      setRotation(lower_dome, 0F, 0F, 0F);

      upper_dome = new ModelRenderer(this, 57, 42);

      upper_dome.addBox(-2.5F, 0F, -2.5F, 5, 1, 5);

      upper_dome.setRotationPoint(-5F, -2F, -5F);

      upper_dome.setTextureSize(128, 64);

      upper_dome.mirror = true;

      setRotation(upper_dome, 0F, 0F, 0F);

      eyestalk = new ModelRenderer(this, 18, 6);

      eyestalk.addBox(-0.5F, -0.5F, -4F, 1, 1, 4);

      eyestalk.setRotationPoint(-5F, -0.4F, -8F);

      eyestalk.setTextureSize(128, 64);

      eyestalk.mirror = true;

      setRotation(eyestalk, 0F, 0F, 0F);

      Lens = new ModelRenderer(this, 20, 12);

      Lens.addBox(-1F, -1F, -1F, 2, 2, 1);

      Lens.setRotationPoint(-5F, -0.4F, -12F);

      Lens.setTextureSize(128, 64);

      Lens.mirror = true;

      setRotation(Lens, 0F, 0F, 0F);

      plunger = new ModelRenderer(this, 20, 17);

      plunger.addBox(-1F, 0F, -1F, 2, 2, 1);

      plunger.setRotationPoint(-8F, 6F, -12.1F);

      plunger.setTextureSize(128, 64);

      plunger.mirror = true;

      setRotation(plunger, 0F, 0F, 0F);

      light_1 = new ModelRenderer(this, 18, 0);

      light_1.addBox(-0.5F, -3F, -0.5F, 1, 3, 1);

      light_1.setRotationPoint(-7.5F, 0F, -5F);

      light_1.setTextureSize(128, 64);

      light_1.mirror = true;

      setRotation(light_1, 0F, -0.0174533F, -0.2450617F);

      light_2 = new ModelRenderer(this, 24, 0);

      light_2.addBox(0F, 0F, 0F, 1, 3, 1);

      light_2.setRotationPoint(-2.1F, -3F, -5.5F);

      light_2.setTextureSize(128, 64);

      light_2.mirror = true;

      setRotation(light_2, 0F, -0.0174533F, 0.2450617F);

      bump_1 = new ModelRenderer(this, 32, 17);

      bump_1.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_1.setRotationPoint(-2F, 20F, -10F);

      bump_1.setTextureSize(128, 64);

      bump_1.mirror = true;

      setRotation(bump_1, 0F, 0F, 0F);

      bump_2 = new ModelRenderer(this, 32, 21);

      bump_2.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_2.setRotationPoint(-8F, 20F, -10F);

      bump_2.setTextureSize(128, 64);

      bump_2.mirror = true;

      setRotation(bump_2, 0F, 0F, 0F);

      bump_3 = new ModelRenderer(this, 32, 25);

      bump_3.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_3.setRotationPoint(-5F, 20F, -10F);

      bump_3.setTextureSize(128, 64);

      bump_3.mirror = true;

      setRotation(bump_3, 0F, 0F, 0F);

      bump_4 = new ModelRenderer(this, 32, 29);

      bump_4.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_4.setRotationPoint(-2F, 16F, -9F);

      bump_4.setTextureSize(128, 64);

      bump_4.mirror = true;

      setRotation(bump_4, 0F, 0F, 0F);

      bump_5 = new ModelRenderer(this, 32, 33);

      bump_5.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_5.setRotationPoint(-8F, 16F, -9F);

      bump_5.setTextureSize(128, 64);

      bump_5.mirror = true;

      setRotation(bump_5, 0F, 0F, 0F);

      bump_6 = new ModelRenderer(this, 32, 37);

      bump_6.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_6.setRotationPoint(-2.5F, 12F, -8F);

      bump_6.setTextureSize(128, 64);

      bump_6.mirror = true;

      setRotation(bump_6, 0F, 0F, 0F);

      bump_7 = new ModelRenderer(this, 32, 41);

      bump_7.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_7.setRotationPoint(-5F, 16F, -9F);

      bump_7.setTextureSize(128, 64);

      bump_7.mirror = true;

      setRotation(bump_7, 0F, 0F, 0F);

      bump_8 = new ModelRenderer(this, 32, 45);

      bump_8.addBox(-1F, -1F, -1F, 2, 2, 1);

      bump_8.setRotationPoint(-7.5F, 12F, -8F);

      bump_8.setTextureSize(128, 64);

      bump_8.mirror = true;

      setRotation(bump_8, 0F, 0F, 0F);

      bump_9 = new ModelRenderer(this, 32, 49);

      bump_9.addBox(0F, 0F, 0F, 2, 2, 1);

      bump_9.setRotationPoint(-9F, 15F, -1F);

      bump_9.setTextureSize(128, 64);

      bump_9.mirror = true;

      setRotation(bump_9, 0F, 0F, 0F);

      bump_10 = new ModelRenderer(this, 32, 53);

      bump_10.addBox(-9F, 20F, 0F, 2, 2, 1);

      bump_10.setRotationPoint(0F, -1F, 0F);

      bump_10.setTextureSize(128, 64);

      bump_10.mirror = true;

      setRotation(bump_10, 0F, 0F, 0F);

      bump_11 = new ModelRenderer(this, 32, 57);

      bump_11.addBox(0F, 0F, 0F, 2, 2, 1);

      bump_11.setRotationPoint(-6F, 19F, 0F);

      bump_11.setTextureSize(128, 64);

      bump_11.mirror = true;

      setRotation(bump_11, 0F, 0F, 0F);

      bump_12 = new ModelRenderer(this, 32, 61);

      bump_12.addBox(0F, 0F, 0F, 2, 2, 1);

      bump_12.setRotationPoint(-3F, 19F, 0F);

      bump_12.setTextureSize(128, 64);

      bump_12.mirror = true;

      setRotation(bump_12, 0F, 0F, 0F);

      bump_13 = new ModelRenderer(this, 40, 17);

      bump_13.addBox(0F, 0F, 0F, 2, 2, 1);

      bump_13.setRotationPoint(-3F, 15F, -1F);

      bump_13.setTextureSize(128, 64);

      bump_13.mirror = true;

      setRotation(bump_13, 0F, 0F, 0F);

      bump_14 = new ModelRenderer(this, 40, 21);

      bump_14.addBox(0F, 0F, 0F, 2, 2, 1);

      bump_14.setRotationPoint(-6F, 15F, -1F);

      bump_14.setTextureSize(128, 64);

      bump_14.mirror = true;

      setRotation(bump_14, 0F, 0F, 0F);

      bump_15 = new ModelRenderer(this, 40, 25);

      bump_15.addBox(0F, 0F, 0F, 2, 2, 1);

      bump_15.setRotationPoint(-3.5F, 11F, -2F);

      bump_15.setTextureSize(128, 64);

      bump_15.mirror = true;

      setRotation(bump_15, 0F, 0F, 0F);

      bump_16 = new ModelRenderer(this, 40, 29);

      bump_16.addBox(0F, 0F, 0F, 2, 2, 1);

      bump_16.setRotationPoint(-8.5F, 11F, -2F);

      bump_16.setTextureSize(128, 64);

      bump_16.mirror = true;

      setRotation(bump_16, 0F, 0F, 0F);

      bump_17 = new ModelRenderer(this, 40, 33);

      bump_17.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_17.setRotationPoint(-1F, 19F, -3F);

      bump_17.setTextureSize(128, 64);

      bump_17.mirror = true;

      setRotation(bump_17, 0F, 0F, 0F);

      bump_18 = new ModelRenderer(this, 40, 38);

      bump_18.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_18.setRotationPoint(-1F, 19F, -9F);

      bump_18.setTextureSize(128, 64);

      bump_18.mirror = true;

      setRotation(bump_18, 0F, 0F, 0F);

      bump_19 = new ModelRenderer(this, 40, 43);

      bump_19.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_19.setRotationPoint(-1F, 19F, -6F);

      bump_19.setTextureSize(128, 64);

      bump_19.mirror = true;

      setRotation(bump_19, 0F, 0F, 0F);

      bump_20 = new ModelRenderer(this, 40, 48);

      bump_20.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_20.setRotationPoint(-1F, 15F, -4F);

      bump_20.setTextureSize(128, 64);

      bump_20.mirror = true;

      setRotation(bump_20, 0F, 0F, 0F);

      bump_21 = new ModelRenderer(this, 40, 53);

      bump_21.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_21.setRotationPoint(-1F, 15F, -8F);

      bump_21.setTextureSize(128, 64);

      bump_21.mirror = true;

      setRotation(bump_21, 0F, 0F, 0F);

      bump_22 = new ModelRenderer(this, 40, 58);

      bump_22.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_22.setRotationPoint(-1F, 11F, -4.5F);

      bump_22.setTextureSize(128, 64);

      bump_22.mirror = true;

      setRotation(bump_22, 0F, 0F, 0F);

      bump_23 = new ModelRenderer(this, 24, 21);

      bump_23.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_23.setRotationPoint(-1F, 11F, -7.5F);

      bump_23.setTextureSize(128, 64);

      bump_23.mirror = true;

      setRotation(bump_23, 0F, 0F, 0F);

      bump_24 = new ModelRenderer(this, 24, 26);

      bump_24.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_24.setRotationPoint(-10F, 11F, -7.5F);

      bump_24.setTextureSize(128, 64);

      bump_24.mirror = true;

      setRotation(bump_24, 0F, 0F, 0F);

      bump_25 = new ModelRenderer(this, 24, 31);

      bump_25.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_25.setRotationPoint(-10F, 15F, -8F);

      bump_25.setTextureSize(128, 64);

      bump_25.mirror = true;

      setRotation(bump_25, 0F, 0F, 0F);

      bump_26 = new ModelRenderer(this, 24, 36);

      bump_26.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_26.setRotationPoint(-10F, 15F, -4F);

      bump_26.setTextureSize(128, 64);

      bump_26.mirror = true;

      setRotation(bump_26, 0F, 0F, 0F);

      bump_27 = new ModelRenderer(this, 24, 41);

      bump_27.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_27.setRotationPoint(-10F, 19F, -6F);

      bump_27.setTextureSize(128, 64);

      bump_27.mirror = true;

      setRotation(bump_27, 0F, 0F, 0F);

      bump_28 = new ModelRenderer(this, 24, 46);

      bump_28.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_28.setRotationPoint(-10F, 11F, -4.5F);

      bump_28.setTextureSize(128, 64);

      bump_28.mirror = true;

      setRotation(bump_28, 0F, 0F, 0F);

      bump_29 = new ModelRenderer(this, 24, 51);

      bump_29.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_29.setRotationPoint(-10F, 19F, -3F);

      bump_29.setTextureSize(128, 64);

      bump_29.mirror = true;

      setRotation(bump_29, 0F, 0F, 0F);

      bump_30 = new ModelRenderer(this, 24, 56);

      bump_30.addBox(0F, 0F, 0F, 1, 2, 2);

      bump_30.setRotationPoint(-10F, 19F, -9F);

      bump_30.setTextureSize(128, 64);

      bump_30.mirror = true;

      setRotation(bump_30, 0F, 0F, 0F);

      Eye = new ModelRenderer(this, 0, 0);

      Eye.addBox(0F, 0F, 0F, 1, 1, 1);

      Eye.setRotationPoint(-5.5F, -0.9F, -13.1F);

      Eye.setTextureSize(128, 64);

      Eye.mirror = true;

      setRotation(Eye, 0F, 0F, 0F);

  }

 

  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)

  {

    super.render(entity, f, f1, f2, f3, f4, f5);

    setRotationAngles(f, f1, f2, f3, f4, f5, entity);

    Fender.render(f5);

    Skirt_3.render(f5);

    Skirt_2.render(f5);

    Skirt_1.render(f5);

    Shoulder.render(f5);

    arm_1.render(f5);

    arm_2.render(f5);

    neck.render(f5);

    neck_intercept.render(f5);

    lower_dome.render(f5);

    upper_dome.render(f5);

    eyestalk.render(f5);

    Lens.render(f5);

    plunger.render(f5);

    light_1.render(f5);

    light_2.render(f5);

    bump_1.render(f5);

    bump_2.render(f5);

    bump_3.render(f5);

    bump_4.render(f5);

    bump_5.render(f5);

    bump_6.render(f5);

    bump_7.render(f5);

    bump_8.render(f5);

    bump_9.render(f5);

    bump_10.render(f5);

    bump_11.render(f5);

    bump_12.render(f5);

    bump_13.render(f5);

    bump_14.render(f5);

    bump_15.render(f5);

    bump_16.render(f5);

    bump_17.render(f5);

    bump_18.render(f5);

    bump_19.render(f5);

    bump_20.render(f5);

    bump_21.render(f5);

    bump_22.render(f5);

    bump_23.render(f5);

    bump_24.render(f5);

    bump_25.render(f5);

    bump_26.render(f5);

    bump_27.render(f5);

    bump_28.render(f5);

    bump_29.render(f5);

    bump_30.render(f5);

    Eye.render(f5);

  }

 

  private void setRotation(ModelRenderer model, float x, float y, float z)

  {

    model.rotateAngleX = x;

    model.rotateAngleY = y;

    model.rotateAngleZ = z;

  }

 

  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity par6Entity)

  {

   

  }

 

}

 

 

 

Posted

The method "public int getHealth()" does not exist in the Entity classes; it returns a float.

 

Putting @Override above your methods will enable some extra error-checking in your IDE that will tell you when your methods don't match any methods in the parent class, which will help prevent mistakes like this.

 

EDIT: Of course, only put @Override above inherited methods, not ones that you create yourself.

 

Posted

ok got that sorted thanks, but i have texture problems now

 

@Override
protected ResourceLocation getEntityTexture(Entity entity) {
	return new ResourceLocation("oomod:textures/mobs/daleks/kronosdrone");

 

Texture path: C:\Users\User\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Film Screen\mcp\src\minecraft\assets\oomod\textures\mobs\daleks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.