Examples of EntitySkeleton


Examples of net.minecraft.entity.monster.EntitySkeleton

   
    EntityMooshroom invisishroom = (EntityMooshroom)MFRUtil.prepareMob(EntityMooshroom.class, world);
    invisishroom.addPotionEffect(new PotionEffect(Potion.invisibility.id, 120 * 20));
    mobs.add(new RandomMob(invisishroom, 5));
   
    EntitySkeleton skeleton1 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton2 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton3 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton4 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    skeleton4.mountEntity(skeleton3);
    skeleton3.mountEntity(skeleton2);
    skeleton2.mountEntity(skeleton1);
    mobs.add(new RandomMob(skeleton1, 2));
   
    EntityBlaze blazeJockey = (EntityBlaze)MFRUtil.prepareMob(EntityBlaze.class, world);
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton

                  entity = new EntityWitch(worldObj);
               
                break;
              }
              case 1 : {
                entity = new EntitySkeleton(worldObj);
                ((EntitySkeleton) entity).setCurrentItemOrArmor(0, new ItemStack(Items.bow));
                if(worldObj.rand.nextInt(8) == 0) {
                  ((EntitySkeleton) entity).setSkeletonType(1);
                  ((EntitySkeleton) entity).setCurrentItemOrArmor(0, new ItemStack(Items.stone_sword));
                }
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton

    @Override
    public boolean entityHasAbility(EntityLivingBase living)
    {
        if (living instanceof EntitySkeleton)
        {
            EntitySkeleton skele = (EntitySkeleton) living;
            if (skele.getSkeletonType() != 1)
            {
                return false;
            }
        }
        return true;
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton

   
    boolean fireproof = true;
   
    if(info != null && info.nextState.entInstance instanceof EntitySkeleton)
    {
      EntitySkeleton skele = (EntitySkeleton)info.nextState.entInstance;
      if(skele.getSkeletonType() != 1)
      {
        fireproof = false;
      }
    }
   
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton

  @Override
  public boolean entityHasAbility(EntityLivingBase living)
  {
    if(living instanceof EntitySkeleton)
    {
      EntitySkeleton skele = (EntitySkeleton)living;
      if(skele.getSkeletonType() != 1)
      {
        return false;
      }
    }
    return true;
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton

  @Override
  public boolean entityHasAbility(EntityLivingBase living)
  {
    if (living instanceof EntitySkeleton)
    {
      EntitySkeleton skele = (EntitySkeleton) living;
      if (skele.getSkeletonType() != 1)
      {
        return false;
      }
    }
    return true;
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton

          itemSkull.stackTagCompound.setString("SkullOwner", thePlayer.getCommandSenderName());
        }
      }
    } else if (event.recentlyHit || !mobPvEOnly) {
      if (event.entity instanceof EntitySkeleton) {
        EntitySkeleton theEntity = (EntitySkeleton) event.entity;

        if (theEntity.getSkeletonType() == 0 && skeletonEnabled && randPerc < skeletonChance) {
          itemSkull = new ItemStack(Items.skull, 1, 0);
        } else if (theEntity.getSkeletonType() == 1 && witherSkeletonEnabled && randPerc < witherSkeletonChance) {
          itemSkull = new ItemStack(Items.skull, 1, 1);
        }
      } else if (event.entity instanceof EntityZombie && zombieEnabled && randPerc < zombieChance) {
        itemSkull = new ItemStack(Items.skull, 1, 2);
      } else if (event.entity instanceof EntityCreeper && creeperEnabled && randPerc < creeperChance) {
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton

            mob.setLocationAndAngles(x, y, z, rand.nextFloat() * 360.0F, 0.0F);

            if (worldObj.checkNoEntityCollision(mob.boundingBox) && worldObj.getCollidingBoundingBoxes(mob, mob.boundingBox).isEmpty() && !worldObj.isAnyLiquid(mob.boundingBox)) {

                if (mob instanceof EntitySkeleton) {
                    EntitySkeleton skel = (EntitySkeleton) mob;
                    if (rand.nextInt(4) == 0) {
                        skel.tasks.addTask(4, new EntityAIAttackOnCollide(skel, EntityPlayer.class, 0.25F, false));
                        skel.setSkeletonType(1);
                        skel.setCurrentItemOrArmor(0, new ItemStack(Items.stone_sword));
                    } else {
                        skel.tasks.addTask(4, new EntityAIArrowAttack(skel, 0.25F, 60, 10.0F));
                        skel.setCurrentItemOrArmor(0, new ItemStack(Items.bow));
                    }

                    mob.setCurrentItemOrArmor(4, new ItemStack(this.rand.nextFloat() < 0.25F ? Blocks.lit_pumpkin : Blocks.pumpkin));
                } else if (living != null)
                    living.onSpawnWithEgg(null);
View Full Code Here

Examples of net.minecraft.src.EntitySkeleton

    }

    public static void summonNecro(World world, double posX, double posY, double posZ,
        EntityLiving owner, Entity target) {
      int x = world.rand.nextInt(2);
      EntityMob en = x == 0 ? new EntitySkeleton(world) : new EntityZombie(world);
      en.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F);
      world.spawnEntityInWorld(en);
      en.setAttackTarget((EntityLiving) target);
      Necromancer necro = new Necromancer(world);
      necro.setLocationAndAngles(posX, posY, posZ, 0, 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.