How to make a mob tha follows a raycast(Ray Tracing)?

Started by Andreway on

Topic category: Help with modding (Java Edition)

Last seen on 11:40, 4. Jun 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob tha follows a raycast(Ray Tracing)?

I'm making a mod where you can create an army, and I need this army to follow a where the player looks, I think, that ray tracing is the best way to do that, but I still cannot figure out how to do that. So if anyone knows how to make that, answer please!