Constantly teleporting an entity behind a player

Started by _Ness on Mon, 06/01/2020 - 11:20

Topic category: Help with modding (Java Edition)

Last seen on 15:16, 21. Apr 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Constantly teleporting an entity behind a player
Mon, 06/01/2020 - 11:20 (edited)

Hi, I'm trying to make a player teleport an entity behind themselves, I used the ~x ~y ~z coordinates but the enity just stays in the same coordinates, not regarding the player's direction in yaw. I tried using the Yaw direction block, but I can't seem to do it correctly, can somebody please help ?

Edited by _Ness on Mon, 06/01/2020 - 11:20
Last seen on 17:18, 29. May 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could make three global…
Tue, 12/15/2020 - 03:41

You could make three global variables and on player tick update set the players coordinates to that and make the entity teleport to those three variables