This is a target selector @a[x=1,y=24,z=1,dx=10,dy=10,dz=10].
It says anyone (@a) who is in a box that goes 10 blocks in each dimension (dx=10,dy=10,dz=10) with the box starting at 1, 24, 1 (x=1,24,=z=1) gets selected.
This is also a target selector @a[x=~,y=~2,z=~,dx=2,dy=2,dz=2].
It says anyone (@a) who is in a box that goes 2 blocks in each dimension (dx=2,dy=2,dz=2) with the box starting 2 blocks above the executor gets selected.
However, the second one is only available in the Bedrock Edition for some reason. Odd! I think we should bring it to Java Edition.
This would be super useful for command blocks. Instead of having to change the coordinates each time you want to select a player above command blocks, say, for seamless teleportation, you can just copy and paste the command block each time!
Please sign in to leave a comment.
5 Comments