I'm trying to use a command block to display a message to players outside of a volume. To do so I'm using the "NOT" operator on the volume dimensions for the target selector.
In the third attached image you can see the command block I'm using with the following command within:
tell @a[124,64,719,dx=!3,dy=!3,dz=!3] You're outside!
In the first attached image you can see that DrLaunch is within the volume and I'm outside the volume. Notice how I'm not receiving any chat messages.
In the second attached image DrLaunch is watching me from within the volume. Notice how DrLaunch is seeing the results of the following command:
tell @a[124,64,719,dx=3,dy=3,dz=3] You're inside!
And in the fourth and final image I'm standing at the origin of the selection and I'm seeing "You're outside!" on the screen.
What I expected to happen was...:
I (knutremi) expected to see "You're outside!" appearing in my chat when I'm outside the volume.
What actually happened was...:
I saw the "You're outside!" message when standing on the execution origin instead.
Steps to Reproduce:
1. Pick a volume with coordinates and volume dimensions.
2. Send a message to players outside the volume using the coordinates and the volume dimensions with a ! operator in front of each dimension value.
3. Stand within the coordinates you picked and observe how the message is appearing at the coordinates instead.
Attachments
Comments 5
dx=!3,dy=!3,dz=!3
is invalid, use r
/rm
:
tell @a[124,64,719,rm=3] You're outside!
tell @a[124,64,719,r=3] You're inside!
The primary issue with "rm", however, is the fact that it's a radius. Sometimes we may need to check outside a rectangular area (such as the OPs scenario) instead of a spherical area. But something like would be best posted elsewhere as a Suggested Feature, instead of a bug.
Yes, for feature suggestions or changes please see: Minecraft Suggestions on Reddit.
Yeah, was gonna suggest it, but I thought it might be a bug instead. Here's the suggestion (and more) if you still want this in the game: http://redd.it/2jeqab
I can reproduce this