Help! Cannot create a custom mob!

Started by wardboys on

Topic category: Help with MCreator software

Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help! Cannot create a custom mob!

So I was trying to create a bipedal mob that attacks you just like any other monster... I first tried to base the AI off Zombie or something but it gives me the same error that I posted below. This error also happened when I tried to define custom AI tasks such as Act Agressively Against Player, Wander Around, etc.:

warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lynchmob.java:116: error: cannot find symbol
            this.targetTasks.addTask(5, new EntityAINearestAttackableTarget(this, EntityEntityPlayer.class, true));
                                                                                  ^
  symbol:   class EntityEntityPlayer
  location: class Entitylynchmob
Note: C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lynchmob.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
1 warning

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

Please help me... Thanks!

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:do you have custom ai tasks,
Sat, 07/23/2016 - 21:47

@#13 Tried with Ai Tasks included but still nothing like you discribed shows...

Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
show me the code with tasks
Sun, 07/24/2016 - 02:34

show me the code with tasks

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:show me the code with tasks
Sun, 07/24/2016 - 17:13

@#14 fixed the entity entity but still does not work...

package mod.mcreator;

 

import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.common.DungeonHooks;

 

import net.minecraft.world.biome.Biome;
import net.minecraft.world.World;
import net.minecraft.world.BossInfoServer;
import net.minecraft.world.BossInfo;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.EnumHand;
import net.minecraft.util.DamageSource;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item;
import net.minecraft.init.Blocks;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIOpenDoor;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAILeapAtTarget;
import net.minecraft.entity.ai.EntityAIAttackMelee;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.Minecraft;

 

import java.util.Random;
import java.util.Iterator;
import java.util.ArrayList;

 

@SuppressWarnings("unchecked")
public class mcreator_lycanFireClone {

 

 public int mobid = 0;
 public static Object instance;

 

 public void load(FMLInitializationEvent event) {
 }

 

 public void generateNether(World world, Random random, int chunkX, int chunkZ) {
 }

 

 public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
 }

 

 public int addFuel(ItemStack fuel) {
  return 0;
 }

 

 @SideOnly(Side.CLIENT)
 public void registerRenderers() {
  RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_lycanFireClone.ModelLycanCloneFire(),
    0) {
   protected ResourceLocation getEntityTexture(Entity par1Entity) {
    return new ResourceLocation("LycanCloneFire.png");
   }
  };
  RenderingRegistry.registerEntityRenderingHandler(mcreator_lycanFireClone.EntitylycanFireClone.class, customRender);
 }

 

 public void serverLoad(FMLServerStartingEvent event) {
 }

 

 public void preInit(FMLPreInitializationEvent event) {
  int entityID = MathHelper.getRandomUUID().hashCode();
  mobid = entityID;
  EntityRegistry.registerModEntity(mcreator_lycanFireClone.EntitylycanFireClone.class, "lycanFireClone", entityID, instance, 64, 1, true,
    (204 << 16) + (0 << 8) + 0, (255 << 16) + (0 << 8) + 0);
  EntityRegistry.addSpawn(mcreator_lycanFireClone.EntitylycanFireClone.class, 20, 3, 30, EnumCreatureType.MONSTER, clean(Biome.REGISTRY));

 

  DungeonHooks.addDungeonMob("lycanFireClone", 180);
 }

 

 public static Biome[] clean(net.minecraft.util.registry.RegistryNamespaced<ResourceLocation, Biome> in) {
  Iterator<Biome> itr = in.iterator();
  ArrayList<Biome> ls = new ArrayList<Biome>();
  while (itr.hasNext()) {
   ls.add(itr.next());
  }
  return ls.toArray(new Biome[ls.size()]);
 }

 

 /*
  * public Entity spawnEntity(int var1, World var2, double var3, double var5,
  * double var7) { if(var1==mobid) return new
  * mcreator_lycanFireClone.EntitylycanFireClone(var2); else return null; }
  */

 

 public static class EntitylycanFireClone extends EntityWolf {
  World world = null;

 

  public EntitylycanFireClone(World var1) {
   super(var1);
   world = var1;
   experienceValue = 200;
   this.isImmuneToFire = true;
   addRandomArmor();
   setNoAI(!true);

 

   this.tasks.addTask(1, new EntityAIWander(this, 0.8D));
   this.tasks.addTask(1, new EntityAILookIdle(this));

 

   this.tasks.addTask(1, new EntityAIOpenDoor(this, true));
   this.tasks.addTask(1, new EntityAIOpenDoor(this, false));
   this.tasks.addTask(1, new EntityAIAttackMelee(this, 1.0D, false));
   this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityEntityPlayer.class, 6.0F));
   this.tasks.addTask(1, new EntityAILeapAtTarget(this, 0.8F));

 

  }

 

  protected void addRandomArmor() {

 

  }

 

  @Override
  public boolean isNonBoss() {
   return false;
  }

 

  private final BossInfoServer bossInfo = (BossInfoServer) (new BossInfoServer(this.getDisplayName(), BossInfo.Color.RED,
    BossInfo.Overlay.PROGRESS));

 

  @Override
  public void addTrackingPlayer(EntityPlayerMP player) {
   super.addTrackingPlayer(player);
   this.bossInfo.addPlayer(player);
  }

 

  @Override
  public void removeTrackingPlayer(EntityPlayerMP player) {
   super.removeTrackingPlayer(player);
   this.bossInfo.removePlayer(player);
  }

 

  @Override
  public void onUpdate() {
   super.onUpdate();
   this.bossInfo.setPercent(this.getHealth() / this.getMaxHealth());
  }

 

  @Override
  protected Item getDropItem() {
   return new ItemStack(Blocks.FIRE).getItem();
  }

 

  @Override
  protected net.minecraft.util.SoundEvent getAmbientSound() {
   return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.ambient"));
  }

 

  @Override
  protected net.minecraft.util.SoundEvent getHurtSound() {
   return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.hurt"));
  }

 

  @Override
  protected net.minecraft.util.SoundEvent getDeathSound() {
   return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.death"));
  }

 

  @Override
  public void onStruckByLightning(EntityLightningBolt entityLightningBolt) {
   super.onStruckByLightning(entityLightningBolt);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;
   Entity entity = this;

 

   if (true) {
    world.createExplosion((Entity) null, i, j, k, 0.1F, true);
   }

 

  }

 

  @Override
  public void fall(float l, float d) {
   super.fall(l, d);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;
   super.fall(l, d);
   Entity entity = this;

 

   if (true) {
    entity.attackEntityFrom(DamageSource.generic, 1);
   }

 

  }

 

  @Override
  public void onDeath(DamageSource source) {
   super.onDeath(source);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;
   Entity entity = this;

 

   if (true) {
    world.createExplosion((Entity) null, i, j, k, 0.1F, true);
   }

 

   if (true) {
    world.createExplosion((Entity) null, i, j, k, 0.1F, true);
   }

 

  }

 

  @Override
  protected boolean processInteract(EntityPlayer entity, EnumHand hand, ItemStack stack) {
   super.processInteract(entity, hand, stack);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;

 

   if (true) {
    world.setWorldTime(0);
   }

 

   return true;
  }

 

  @Override
  protected float getSoundVolume() {
   return 1.0F;
  }

 

 }

 

 // Date: 7/16/2016 10:00:52 PM
 // Template version 1.1
 // Java generated by Techne
 // Keep in mind that you still need to fill in some blanks
 // - ZeuX

 

 public static class ModelLycanCloneFire extends ModelBase {
  // fields
  ModelRenderer WolfHead;
  ModelRenderer Body;
  ModelRenderer Mane;
  ModelRenderer Leg1;
  ModelRenderer Leg2;
  ModelRenderer Leg3;
  ModelRenderer Leg4;
  ModelRenderer Tail;
  ModelRenderer Ear1;
  ModelRenderer Ear2;
  ModelRenderer Nose;

 

  public ModelLycanCloneFire() {
   textureWidth = 64;
   textureHeight = 32;

 

   WolfHead = new ModelRenderer(this, 0, 0);
   WolfHead.addBox(-3F, -3F, -2F, 6, 6, 4);
   WolfHead.setRotationPoint(-1F, 13.5F, -7F);
   WolfHead.setTextureSize(64, 32);
   WolfHead.mirror = true;
   setRotation(WolfHead, 0F, 0F, 0F);
   Body = new ModelRenderer(this, 18, 14);
   Body.addBox(-4F, -2F, -3F, 6, 9, 6);
   Body.setRotationPoint(0F, 14F, 2F);
   Body.setTextureSize(64, 32);
   Body.mirror = true;
   setRotation(Body, 1.570796F, 0F, 0F);
   Mane = new ModelRenderer(this, 21, 0);
   Mane.addBox(-4F, -3F, -3F, 8, 6, 7);
   Mane.setRotationPoint(-1F, 14F, -3F);
   Mane.setTextureSize(64, 32);
   Mane.mirror = true;
   setRotation(Mane, 1.570796F, 0F, 0F);
   Leg1 = new ModelRenderer(this, 0, 18);
   Leg1.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg1.setRotationPoint(-2.5F, 16F, 7F);
   Leg1.setTextureSize(64, 32);
   Leg1.mirror = true;
   setRotation(Leg1, 0F, 0F, 0F);
   Leg2 = new ModelRenderer(this, 0, 18);
   Leg2.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg2.setRotationPoint(0.5F, 16F, 7F);
   Leg2.setTextureSize(64, 32);
   Leg2.mirror = true;
   setRotation(Leg2, 0F, 0F, 0F);
   Leg3 = new ModelRenderer(this, 0, 18);
   Leg3.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg3.setRotationPoint(-2.5F, 16F, -4F);
   Leg3.setTextureSize(64, 32);
   Leg3.mirror = true;
   setRotation(Leg3, 0F, 0F, 0F);
   Leg4 = new ModelRenderer(this, 0, 18);
   Leg4.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg4.setRotationPoint(0.5F, 16F, -4F);
   Leg4.setTextureSize(64, 32);
   Leg4.mirror = true;
   setRotation(Leg4, 0F, 0F, 0F);
   Tail = new ModelRenderer(this, 9, 18);
   Tail.addBox(-1F, 0F, -1F, 2, 8, 2);
   Tail.setRotationPoint(-1F, 12F, 8F);
   Tail.setTextureSize(64, 32);
   Tail.mirror = true;
   setRotation(Tail, 1.130069F, 0F, 0F);
   Ear1 = new ModelRenderer(this, 16, 14);
   Ear1.addBox(-3F, -5F, 0F, 2, 2, 1);
   Ear1.setRotationPoint(-1F, 13.5F, -7F);
   Ear1.setTextureSize(64, 32);
   Ear1.mirror = true;
   setRotation(Ear1, 0F, 0F, 0F);
   Ear2 = new ModelRenderer(this, 16, 14);
   Ear2.addBox(1F, -5F, 0F, 2, 2, 1);
   Ear2.setRotationPoint(-1F, 13.5F, -7F);
   Ear2.setTextureSize(64, 32);
   Ear2.mirror = true;
   setRotation(Ear2, 0F, 0F, 0F);
   Nose = new ModelRenderer(this, 0, 10);
   Nose.addBox(-2F, 0F, -5F, 3, 3, 4);
   Nose.setRotationPoint(-0.5F, 13.5F, -7F);
   Nose.setTextureSize(64, 32);
   Nose.mirror = true;
   setRotation(Nose, 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);

 

   WolfHead.render(f5);
   Body.render(f5);
   Mane.render(f5);
   Leg1.render(f5);
   Leg2.render(f5);
   Leg3.render(f5);
   Leg4.render(f5);
   Tail.render(f5);
   Ear1.render(f5);
   Ear2.render(f5);
   Nose.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 e)

 

  {
   super.setRotationAngles(f, f1, f2, f3, f4, f5, e);
   this.WolfHead.rotateAngleY = f3 / (180F / (float) Math.PI);
   this.WolfHead.rotateAngleX = f4 / (180F / (float) Math.PI);

 

  }

 

 }

 

}

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:show me the code with tasks
Sun, 07/24/2016 - 17:25

@#14.1 saw one more entity entity, fixed it, but still does not work.

Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how does it not work, what
Mon, 07/25/2016 - 00:58

how does it not work, what error is it

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:how does it not work, what
Mon, 07/25/2016 - 13:17

@#15 The Error Code:

warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lycanFireClone.java:124: error: cannot find symbol
   this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityEntityPlayer.class, 6.0F));
                                                        ^
  symbol:   class EntityEntityPlayer
  location: class EntitylycanFireClone
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lycanFireClone.java:248: error: processInteract(EntityPlayer,EnumHand,ItemStack) in EntitylycanFireClone cannot override processInteract(EntityPlayer,EnumHand,ItemStack) in EntityWolf
  protected boolean processInteract(EntityPlayer entity, EnumHand hand, ItemStack stack) {
                    ^
  attempting to assign weaker access privileges; was public
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
1 warning

 

FAILURE: Build failed with an exception.

 

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

 

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

 

 

The Code:

package mod.mcreator;

 

import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.common.DungeonHooks;

 

import net.minecraft.world.biome.Biome;
import net.minecraft.world.World;
import net.minecraft.world.BossInfoServer;
import net.minecraft.world.BossInfo;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.EnumHand;
import net.minecraft.util.DamageSource;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item;
import net.minecraft.init.Blocks;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAITempt;
import net.minecraft.entity.ai.EntityAIOpenDoor;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAILeapAtTarget;
import net.minecraft.entity.ai.EntityAIAttackMelee;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.Minecraft;

 

import java.util.Random;
import java.util.Iterator;
import java.util.ArrayList;

 

@SuppressWarnings("unchecked")
public class mcreator_lycanFireClone {

 

 public int mobid = 0;
 public static Object instance;

 

 public void load(FMLInitializationEvent event) {
 }

 

 public void generateNether(World world, Random random, int chunkX, int chunkZ) {
 }

 

 public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
 }

 

 public int addFuel(ItemStack fuel) {
  return 0;
 }

 

 @SideOnly(Side.CLIENT)
 public void registerRenderers() {
  RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_lycanFireClone.ModelLycanCloneFire(),
    0) {
   protected ResourceLocation getEntityTexture(Entity par1Entity) {
    return new ResourceLocation("LycanCloneFire.png");
   }
  };
  RenderingRegistry.registerEntityRenderingHandler(mcreator_lycanFireClone.EntitylycanFireClone.class, customRender);
 }

 

 public void serverLoad(FMLServerStartingEvent event) {
 }

 

 public void preInit(FMLPreInitializationEvent event) {
  int entityID = MathHelper.getRandomUUID().hashCode();
  mobid = entityID;
  EntityRegistry.registerModEntity(mcreator_lycanFireClone.EntitylycanFireClone.class, "lycanFireClone", entityID, instance, 64, 1, true,
    (255 << 16) + (255 << 8) + 255, (255 << 16) + (255 << 8) + 255);
  EntityRegistry.addSpawn(mcreator_lycanFireClone.EntitylycanFireClone.class, 20, 3, 30, EnumCreatureType.MONSTER, clean(Biome.REGISTRY));

 

  DungeonHooks.addDungeonMob("lycanFireClone", 180);
 }

 

 public static Biome[] clean(net.minecraft.util.registry.RegistryNamespaced<ResourceLocation, Biome> in) {
  Iterator<Biome> itr = in.iterator();
  ArrayList<Biome> ls = new ArrayList<Biome>();
  while (itr.hasNext()) {
   ls.add(itr.next());
  }
  return ls.toArray(new Biome[ls.size()]);
 }

 

 /*
  * public Entity spawnEntity(int var1, World var2, double var3, double var5,
  * double var7) { if(var1==mobid) return new
  * mcreator_lycanFireClone.EntitylycanFireClone(var2); else return null; }
  */

 

 public static class EntitylycanFireClone extends EntityWolf {
  World world = null;

 

  public EntitylycanFireClone(World var1) {
   super(var1);
   world = var1;
   experienceValue = 200;
   this.isImmuneToFire = true;
   addRandomArmor();
   setNoAI(!true);

 

   this.tasks.addTask(1, new EntityAIWander(this, 0.8D));
   this.tasks.addTask(1, new EntityAILookIdle(this));

 

   this.tasks.addTask(1, new EntityAIOpenDoor(this, true));
   this.tasks.addTask(1, new EntityAIOpenDoor(this, false));
   this.tasks.addTask(1, new EntityAITempt(this, 0.8D, mcreator_swordOfFire.block, false));
   this.tasks.addTask(1, new EntityAIAttackMelee(this, 1.0D, false));
   this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityEntityPlayer.class, 6.0F));
   this.tasks.addTask(1, new EntityAILeapAtTarget(this, 0.8F));

 

  }

 

  protected void addRandomArmor() {

 

  }

 

  @Override
  public boolean isNonBoss() {
   return false;
  }

 

  private final BossInfoServer bossInfo = (BossInfoServer) (new BossInfoServer(this.getDisplayName(), BossInfo.Color.RED,
    BossInfo.Overlay.PROGRESS));

 

  @Override
  public void addTrackingPlayer(EntityPlayerMP player) {
   super.addTrackingPlayer(player);
   this.bossInfo.addPlayer(player);
  }

 

  @Override
  public void removeTrackingPlayer(EntityPlayerMP player) {
   super.removeTrackingPlayer(player);
   this.bossInfo.removePlayer(player);
  }

 

  @Override
  public void onUpdate() {
   super.onUpdate();
   this.bossInfo.setPercent(this.getHealth() / this.getMaxHealth());
  }

 

  protected void dropRareDrop(int par1) {
   this.dropItem(new ItemStack(Blocks.FIRE).getItem(), 1);
  }

 

  @Override
  protected Item getDropItem() {
   return new ItemStack(Blocks.FIRE).getItem();
  }

 

  @Override
  protected net.minecraft.util.SoundEvent getAmbientSound() {
   return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.ambient"));
  }

 

  @Override
  protected net.minecraft.util.SoundEvent getHurtSound() {
   return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.hurt"));
  }

 

  @Override
  protected net.minecraft.util.SoundEvent getDeathSound() {
   return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.death"));
  }

 

  @Override
  public void onStruckByLightning(EntityLightningBolt entityLightningBolt) {
   super.onStruckByLightning(entityLightningBolt);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;
   Entity entity = this;

 

   if (true) {
    world.playSound(
      (EntityPlayer) null,
      (double) i + 0.5D,
      (double) j + 0.5D,
      (double) k + 0.5D,
      (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(("entity.wolf.growl"))),
      SoundCategory.NEUTRAL, 1.0F, 1.0F);
   }

 

  }

 

  @Override
  public void fall(float l, float d) {
   super.fall(l, d);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;
   super.fall(l, d);
   Entity entity = this;

 

   if (true) {
    world.playSound(
      (EntityPlayer) null,
      (double) i + 0.5D,
      (double) j + 0.5D,
      (double) k + 0.5D,
      (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(("entity.wolf.shake"))),
      SoundCategory.NEUTRAL, 1.0F, 1.0F);
   }

 

  }

 

  @Override
  public void onDeath(DamageSource source) {
   super.onDeath(source);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;
   Entity entity = this;

 

   if (true) {
    world.createExplosion((Entity) null, i, j, k, 0.1F, true);
   }

 

   if (true) {
    Entity sentity = EntityList.createEntityByID(61, world);
    if (sentity != null && !world.isRemote) {
     sentity.setLocationAndAngles(i, j, k, world.rand.nextFloat() * 360F, 0.0F);
     world.spawnEntityInWorld(sentity);
     ((EntityLiving) sentity).playLivingSound();
    }
   }

 

  }

 

  @Override
  protected boolean processInteract(EntityPlayer entity, EnumHand hand, ItemStack stack) {
   super.processInteract(entity, hand, stack);
   int i = (int) this.posX;
   int j = (int) this.posY;
   int k = (int) this.posZ;

 

   if (true) {
    entity.attackEntityFrom(DamageSource.generic, 0);
   }

 

   return true;
  }

 

  @Override
  protected float getSoundVolume() {
   return 1.0F;
  }

 

 }

 

 // Date: 7/16/2016 10:00:52 PM
 // Template version 1.1
 // Java generated by Techne
 // Keep in mind that you still need to fill in some blanks
 // - ZeuX

 

 public static class ModelLycanCloneFire extends ModelBase {
  // fields
  ModelRenderer WolfHead;
  ModelRenderer Body;
  ModelRenderer Mane;
  ModelRenderer Leg1;
  ModelRenderer Leg2;
  ModelRenderer Leg3;
  ModelRenderer Leg4;
  ModelRenderer Tail;
  ModelRenderer Ear1;
  ModelRenderer Ear2;
  ModelRenderer Nose;

 

  public ModelLycanCloneFire() {
   textureWidth = 64;
   textureHeight = 32;

 

   WolfHead = new ModelRenderer(this, 0, 0);
   WolfHead.addBox(-3F, -3F, -2F, 6, 6, 4);
   WolfHead.setRotationPoint(-1F, 13.5F, -7F);
   WolfHead.setTextureSize(64, 32);
   WolfHead.mirror = true;
   setRotation(WolfHead, 0F, 0F, 0F);
   Body = new ModelRenderer(this, 18, 14);
   Body.addBox(-4F, -2F, -3F, 6, 9, 6);
   Body.setRotationPoint(0F, 14F, 2F);
   Body.setTextureSize(64, 32);
   Body.mirror = true;
   setRotation(Body, 1.570796F, 0F, 0F);
   Mane = new ModelRenderer(this, 21, 0);
   Mane.addBox(-4F, -3F, -3F, 8, 6, 7);
   Mane.setRotationPoint(-1F, 14F, -3F);
   Mane.setTextureSize(64, 32);
   Mane.mirror = true;
   setRotation(Mane, 1.570796F, 0F, 0F);
   Leg1 = new ModelRenderer(this, 0, 18);
   Leg1.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg1.setRotationPoint(-2.5F, 16F, 7F);
   Leg1.setTextureSize(64, 32);
   Leg1.mirror = true;
   setRotation(Leg1, 0F, 0F, 0F);
   Leg2 = new ModelRenderer(this, 0, 18);
   Leg2.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg2.setRotationPoint(0.5F, 16F, 7F);
   Leg2.setTextureSize(64, 32);
   Leg2.mirror = true;
   setRotation(Leg2, 0F, 0F, 0F);
   Leg3 = new ModelRenderer(this, 0, 18);
   Leg3.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg3.setRotationPoint(-2.5F, 16F, -4F);
   Leg3.setTextureSize(64, 32);
   Leg3.mirror = true;
   setRotation(Leg3, 0F, 0F, 0F);
   Leg4 = new ModelRenderer(this, 0, 18);
   Leg4.addBox(-1F, 0F, -1F, 2, 8, 2);
   Leg4.setRotationPoint(0.5F, 16F, -4F);
   Leg4.setTextureSize(64, 32);
   Leg4.mirror = true;
   setRotation(Leg4, 0F, 0F, 0F);
   Tail = new ModelRenderer(this, 9, 18);
   Tail.addBox(-1F, 0F, -1F, 2, 8, 2);
   Tail.setRotationPoint(-1F, 12F, 8F);
   Tail.setTextureSize(64, 32);
   Tail.mirror = true;
   setRotation(Tail, 1.130069F, 0F, 0F);
   Ear1 = new ModelRenderer(this, 16, 14);
   Ear1.addBox(-3F, -5F, 0F, 2, 2, 1);
   Ear1.setRotationPoint(-1F, 13.5F, -7F);
   Ear1.setTextureSize(64, 32);
   Ear1.mirror = true;
   setRotation(Ear1, 0F, 0F, 0F);
   Ear2 = new ModelRenderer(this, 16, 14);
   Ear2.addBox(1F, -5F, 0F, 2, 2, 1);
   Ear2.setRotationPoint(-1F, 13.5F, -7F);
   Ear2.setTextureSize(64, 32);
   Ear2.mirror = true;
   setRotation(Ear2, 0F, 0F, 0F);
   Nose = new ModelRenderer(this, 0, 10);
   Nose.addBox(-2F, 0F, -5F, 3, 3, 4);
   Nose.setRotationPoint(-0.5F, 13.5F, -7F);
   Nose.setTextureSize(64, 32);
   Nose.mirror = true;
   setRotation(Nose, 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);

 

   WolfHead.render(f5);
   Body.render(f5);
   Mane.render(f5);
   Leg1.render(f5);
   Leg2.render(f5);
   Leg3.render(f5);
   Leg4.render(f5);
   Tail.render(f5);
   Ear1.render(f5);
   Ear2.render(f5);
   Nose.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 e)

 

  {
   super.setRotationAngles(f, f1, f2, f3, f4, f5, e);
   this.WolfHead.rotateAngleY = f3 / (180F / (float) Math.PI);
   this.WolfHead.rotateAngleX = f4 / (180F / (float) Math.PI);
   this.Leg2.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
   this.Leg1.rotateAngleX = MathHelper.cos(f * 1.0F) * 1.0F * f1;
   this.Leg3.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
   this.Leg4.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
  }

 

 }

 

}

Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this is in your ai tasks:
Mon, 07/25/2016 - 18:27

this is in your ai tasks: this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityEntityPlayer.class, 6.0F));

 

Replace EntityEntityPlayer with EntityPlayer

 

Also if you are using an ai from another mob, use custom taks instead

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:this is in your ai tasks:
Mon, 07/25/2016 - 18:55

@#16 Fixed it, but still does not want to compile.

warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lycanFireClone.java:248: error: processInteract(EntityPlayer,EnumHand,ItemStack) in EntitylycanFireClone cannot override processInteract(EntityPlayer,EnumHand,ItemStack) in EntityWolf
  protected boolean processInteract(EntityPlayer entity, EnumHand hand, ItemStack stack) {
                    ^
  attempting to assign weaker access privileges; was public
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
1 warning

 

FAILURE: Build failed with an exception.

 

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

 

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:this is in your ai tasks:
Mon, 07/25/2016 - 19:03

@#16 Update i put the type of creature as mob or one and creature. fixed that but now it says:


FAILURE: Build failed with an exception.

 

* What went wrong:
Execution failed for task ':clean'.
> Unable to delete directory: C:\Pylo\MCreator169\forge\build

 

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:this is in your ai tasks:
Wed, 07/27/2016 - 23:38

@#16.2 Great News! updated Java and it workes now!!

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:RE:this is in your ai tasks:
Fri, 07/29/2016 - 00:36

@#16.2.1 And now it does not work again with that message above appearing.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ive had a similar problem I
Tue, 09/27/2016 - 21:21

Ive had a similar problem I fixed it by removing an unnecessary model piece.