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

Started by Andreway on Tue, 11/29/2022 - 12:14

Topic category: Help with modding (Java Edition)

Last seen on 16:12, 4. Dec 2022
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a mob tha follows a raycast(Ray Tracing)?
Tue, 11/29/2022 - 12:14

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!