How do I make an entity look towards a specific coordinate

Started by littledude47 on Mon, 09/07/2020 - 23:07

Topic category: Help with modding (Java Edition)

Last seen on 01:58, 15. Oct 2020
Joined Jan 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make an entity look towards a specific coordinate
Mon, 09/07/2020 - 23:07

I'm trying to make my projectile home towards stuff so i'd assume I'd need to set the rotation of the projectile while it's in the air so how I thought I could do this is by making it look at the coordinate of a specific entity, I can already get the coordinates of entities within a set amount of blocks but now I want the projectile to actually go towards / look towards it

Last seen on 15:50, 24. Oct 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could also try setting…
Tue, 09/08/2020 - 00:22

You could also try setting the velocity of the projectile. That probably would be easier, as you only need to make some mathematical things on the coordinates of the entity :)