Minecraft – Tp command block proximity

minecraft-bedrock-edition

I'm trying to make a portal hub to head N,S,E,W directions and a portal back again from each point back to world spawn near the hub.

My first portal keeps teleporting and I cant get near it without commandblocksenabled false. I've approached from afar and realised its teleporting me from a good 20 blocks away. It's meant to only work if I stand on the designated coordinates.
I've got
Testfor @p[x=#,y=#,z=#,r=1] (repeat, unconditional, always active)
and above that
Tp @p x y z (chain, unconditional, always active)

Annoyingly this is exactly as I've copied from online and works fine for them.

Best Answer

Your /tp command block should be conditional. Right now, it's just tp'ing the nearest player whenever the block is loaded.

Related Topic