How can I make custom entity teleport always to a player?

Started by MaveeYT on

Topic category: Help with modding (Java Edition)

Last seen on 18:24, 6. Apr 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make custom entity teleport always to a player?

Hello. How can I have a custom entity always teleport to the player? So, whenever the player moves, the entity moves with it. I know I have to do this in "One entity tick update" but how?
Best regards,
MaveeYT

You will need to look for…
Mon, 12/07/2020 - 07:57

You will need to look for entity in range of type player and tp to its coordinates

Last seen on 18:24, 6. Apr 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey how exactly can I do…
Mon, 12/07/2020 - 13:34

Hey how exactly can I do this?

Last seen on 01:06, 27. Jun 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you figured this out…
Mon, 10/11/2021 - 21:59

Have you figured this out yet?

Last seen on 15:20, 19. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For each entity type A in…
Tue, 10/12/2021 - 07:26

For each entity type A in radius

Set iterator location to X Y Z player position

I have one in my mod and works perfectly

 

Last seen on 04:46, 7. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can i know the code?  
Thu, 01/06/2022 - 12:41

can i know the code?