Mob aggro range help?

Discussion in 'Plugin Development' started by dxwarlock, Jun 21, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    dxwarlock

    I had another post about changing mob speeds, I managed to get one mob working with some peoples help in it, and frankenstiening together peices from other threads and it working now.

    But it seems what I THINK is the aggro range doesn't effect anything.

    its these 2 lines: (I did the approach of making my own Zombie class that extends EntityZombie)
    this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget(this, EntityHuman.class, 46.0F, 0, true));
    this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget(this, EntityVillager.class, 46.0F, 0, false));

    I have set them to 46, but you still need to be almost next to the mob for them to target you, and I assuming the wrong place to change it?
     
  2. what is this, what is this.targetSelector?
     
  3. Offline

    dxwarlock

Thread Status:
Not open for further replies.

Share This Page