Jump to content

Twinsonian

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Twinsonian

  1. Hi,

     

    I have spent the last couple of days researching and trying to learn/figure out ways of dealing with changing the detection range on mobs.

     

    I believe that this is handled through EntityMob, Specifically:

     

    protected Entity findPlayerToAttack()

        {

            EntityPlayer entityplayer = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);

            return entityplayer != null && this.canEntityBeSeen(entityplayer) ? entityplayer : null;

        }

     

    I blieve there is also a pathing distance I will need to look in to as well.

     

    Anyhow my question is: How in the world do I go about changing the aggro range on mobs. If my assumption is right then it is currently set at 16 according to entitymob. I could be entirely wrong I guess. (Zombies in 1.6 for example have an insane aggro range now and I am still looking to figure out why that is).

     

    Any help or pointers in the right direction is greatly appreciated.

×
×
  • Create New...

Important Information

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