Check for closest entity that's not of a specific type

Started by 91arrows on Sun, 05/15/2022 - 14:53

Topic category: Help with modding (Java Edition)

Last seen on 21:31, 26. Jun 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Check for closest entity that's not of a specific type
Sun, 05/15/2022 - 14:53

i wanna execute a procedure based on the entity closest to my custom entity

the problem is that the closest entity to my custom entity is the custom entity itself, so it executes the procedure based on the custom entity

i want to either be able to find the second closest entity, third closest entity etc., or be able to find the closest entity that's not my custom entity