How do I make an entity look towards a specific coordinate

Started by littledude47 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an entity look towards a specific coordinate

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

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 :)