It says it all in the title. Anything I try (using /teleport, using /execute) teleports the player relative the command block. I just want the player to teleport to y=46 when I power a command block. Thank you for your help.


1 Answer 1


To change the point of execution, you can use the "at" keyword. Example:

/execute as <player> at @s run tp ~ 46 ~
  • Commands had always been executed at the position of the executor by default, except /tp. Now /tp works correctly as well. It was a bugfix that changed this. Mar 24, 2020 at 18:45
  • I thought that wasn't the case because of how /tp worked. Thanks for pointing this out. Mar 24, 2020 at 19:00

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