I need a command block to teleport me 5 blocks upwards when I'm near. So I wrote this command:
tp @a[distance=..2] ~ ~5 ~
Unfortunately, that command teleported me to the middle of the block. That means, even if I stood at the edge of the block I would still get teleported to the center. However when I use classic /tp @s ~ ~5 ~ in my command prompt / chat it works fine. Do anyone know how to make it teleport me directly upwards?
I tried using this command as well but it didn't help: