I am having trouble making sure that one of the entities is always inside of the player. I am able to get it to teleport to me, but when moving it lags behind which isn't a good thing for what I am trying to do.

/execute @a[x=~,y=~0.5,z=~,score_holdingWand_min=1] ~ ~ ~ /tp @e[type=Villager,name=rightClickDetector] @a

I want to keep this villager inside the player at all times, even when running and sprinting. If there is a way then that would be great.

  • 1
    Are you using a 20hz clock to run this command? (I.e repeating command block)
    – SB32
    Commented Feb 8, 2017 at 5:01
  • Yes, the entity is still lagging behind though.
    – TrueDakkon
    Commented Feb 9, 2017 at 7:01

1 Answer 1


A 20hz clock is the fastest possible way to run a command. There is no way to teleport the villager to the player faster than that. Try using more than 1 villager, possibly arranged in a circle or shpere to always catch a players click. Additionally, if you could get the player to ride something, like a pig or horse, you could make the villager ride that entity as well, and their positions would match. Hope this helped

  • The riding would be a good idea, but I need the player to move freely. unless you can set the position of an entity riding a player so that they are placed inside of them. If so then that could work.
    – TrueDakkon
    Commented Feb 11, 2017 at 6:16
  • Sadly there is no way to get an entity to ride the player. What I meant was if the player was riding a horse or pig, then you could use commands and also put the villager on that horse or pig. Entitydata does not work on the player.
    – SB32
    Commented Feb 13, 2017 at 1:47
  • That's too bad... I guess I will just have to figure out another way around it then...
    – TrueDakkon
    Commented Feb 18, 2017 at 17:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .