Checking of coordinates of the Entity

Discussion in 'Plugin Development' started by AdraliK, Aug 8, 2018.

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

    AdraliK

    Hello, everyone. How to make it so that there was a check: is there an Entity at such coordinates X Y Z ?
     
  2. Offline

    Zombie_Striker

    @AdraliK
    1. Create a BukkitRunnable. Set it to run every tick (set it to every couple of ticks if you do not have a great computer)
    2. Get the location you want to check. Get the world's instance and use getNearbyEntities within that block.
    3. If the list is not empty, the entities in that list are at that block.
     
  3. Offline

    AdraliK

    I'm sorry, but you can't show your code . I added getNearbyEntities but in the console was a delirium
     
Thread Status:
Not open for further replies.

Share This Page