How to attach entity to the player?

Started by vile on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to attach entity to the player?

I know that there are plugins like keilders that does this but I was wondering if there are other ways. I’ve been trying to attach the mob to the player via set location block. (I set a NBT tag “owner” to the mob so it only attaches to the owner)I’ve also tried the follow block but both seems to drag too much. In my mod the players flys around so the dragging is very visible. 

If there is a way to do this better or just straight code pls I would like too know as I can’t find anything on this topic to learn.🙏

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on entity tick, run command …
Fri, 04/04/2025 - 15:00

on entity tick, run command /tp @s @p

it might work, might not, just try it

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried it. But it seems to…
Fri, 04/04/2025 - 15:30

I tried it. But it seems to do the same as set location. It drags too much when the player is flying around. 
Keilders attaches to the player perfectly but doesn’t support entity animations or glowing models it seems which is what I want.