How to get distance between mob and what the mob is fighting

Started by Taptrocity on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get distance between mob and what the mob is fighting

So I have a mob which I want to either use a short ranged attack when the mob is close to the mob they are fighting and a long ranged attack when they are farther away. Can someone please help with this.

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OMG IT WORKS Thank you sooo…
Tue, 12/10/2024 - 13:08

OMG IT WORKS Thank you sooo much!!!