Advertisement
TitanChase

Untitled

Feb 22nd, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public void updateTask()
  2. {
  3. this.temptedEntity.getLookHelper().setLookPositionWithEntity(this.temptingPlayer, (float)(this.temptedEntity.getHorizontalFaceSpeed() + 20), (float)this.temptedEntity.getVerticalFaceSpeed());
  4.  
  5. if (this.temptedEntity.getDistanceSqToEntity(this.temptingPlayer) < 6.25D)
  6. {
  7. this.temptedEntity.getNavigator().clearPathEntity();
  8. }
  9. else
  10. {
  11. this.temptedEntity.getNavigator().tryMoveToEntityLiving(this.temptingPlayer, this.speed);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement