Detecting entity movement without schedulers

Discussion in 'Plugin Development' started by FoxinatorDev, Oct 27, 2020.

  1. Offline

    FoxinatorDev

    I'm trying to detect when an entity moves without using schedulers/runnables. I've researched this for a few days now and still can't figure it out. I'm assuming it would require NMS to achieve this and I'm not great at it. Any help on this is appreciated. Thanks!
     
  2. @FoxinatorDev I believe NMS entities have a tick() method, you could probably override that.
     
  3. Offline

    Kars

    You could probably also listen for packets, but that get complicated quickly. Using tasks is really the easiest.
     
  4. Offline

    FoxinatorDev

    Sorry for the late responses.
    I don't see a tick() method, probably because I am using Spigot 1.8.8.

    I'll try listening for packets. I know using tasks is the easiest but I want to learn other methods of doing this if there are any.
     
  5. 1. I just checked the NMS source, and it seems that even 1.9.4 does not have it. 1.14.4 does have it, but i am not sure when it got added.
    2. When working with NMS, your version is pretty important information.
     

Share This Page