Commands return true when selecting targets using the volume arguments, even if the entities aren't present in the volume. This is due to a recent change that made the commands to detect when they barely collide with the volume. Unfortunately, there is an issue with this change. This causes the commands to run where the location of entity is really critical. An example will be provided below. Since we can now have float values for the volume arguments and someone needs to test when the player collides, they can just extend the volume by couple of decimal values. This shouldn't be the case by default and hoping this gets reverted back.
Example:Β Imagine setting up a teleporter on a single block, which will teleport anyone who comes inside that single block. So normally that volume is preoccupied with a single block to stop players from using it. But with this change, the player can easily bypass this by simply colliding with the preoccupied block.
I know this is a niche situation and there are better ways to stop players from using the teleporter instead of physically blocking it, but I was just using this an example to convey the idea.
Β
Steps to reproduce:
Run the following command in a command block set to repeat.
execute positioned ~~~ align xyz if entity @a[dx=0] run say true
Now try to make contact with the command block
Observed results:
Despite the player not actually in the block, the say command gets triggered.
Expected results:
The command shouldn't trigger, since the player isn't in the volume.
Linked issues
duplicates 1
Comments 2

@unknown I'm aware of the bug that you linked, but this is a different issue. That is why I added the "align xyz" to the command, which won't cause the bug that you linked.
Thank you for your report!
We're tracking this issue in MCPE-171423, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.