How to force player to go towards an entity with a potion effect? [Solved]

Started by TDO on

Topic category: Help with modding (Java Edition)

Last seen on 07:07, 19. May 2024
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to force player to go towards an entity with a potion effect? [Solved]
Thu, 05/09/2024 - 18:47 (edited)

I think the title is pretty much clear. I know i should use the "override motion vector" block but idk how I could make the player go towards the entity. also I would make it forced to turn their head towards the entity.


If you have any ways I would do this I would be so thankful 🙏🙏🙏

Edited by TDO on Thu, 05/09/2024 - 18:47
Last seen on 08:42, 19. May 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but effect is very strong …
Sat, 05/04/2024 - 15:33

but effect is very strong (sorry for eng mistakes)

 

Last seen on 07:07, 19. May 2024
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@soup_s_kotom Actually i…
Thu, 05/09/2024 - 18:49

@soup_s_kotom Actually i already figured out how to do it. I substracted the position of the entity to the position of the other entity, then if it was positive go into that way if it was negative go that other way, then did it for x, y and z. 
My mod is released if you wanna check it out : https://mcreator.net/modification/106435/ancient-legends