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

Started by 91arrows on

Topic category: Help with modding (Java Edition)

Last seen on 12:31, 22. Jan 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check for closest entity that's not of a specific type

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

Last seen on 17:02, 15. Apr 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how did you find the closest…
Mon, 03/18/2024 - 18:33

how did you find the closest entity?