Refresh Entity (NMS) Chicken

Discussion in 'Spigot Plugin Development' started by Bladian, May 4, 2015.

  1. I currently have a custom chicken which I control with WASD, but there's a small bug I can't fix, whenever the mob spawns it takes anywhere between 2-30 seconds for the chicken to move.

    My question is, is there any way to "refresh" my custom chicken? Or maybe fix the delay?

    Thank you

  2. Just an idea? Does a reloadEntity() method exist, or anything of the sort?
  3. do you try with the function with doTick() ?
  4. doTick() to refresh an entity?
  5. doTick() is execute all tick. You can use to move your entity.
  6. So basically when I spawn the custom entity. I need to add the method doTick() to allow the delay to go away?
  7. in doTick() You add your move function.
  8. That's a giant waste of time. I've already got it to move. The problem is that during the first 2-30 seconds it does not move, and then it moves perfectly.