The CommandBlock's Radius checking seems to follow into the pattern of the South-West rule, I was testing some ideas such as a "Respawn Countdown" idea and found this oddity.
I have 2 command blocks set up in a 16-tick loop with the following commands;
/scoreboard players remove @a[r=3,x=355,y=64,z=-180,score_Countdown=10,score_Countdown_min=0] Countdown 1
/scoreboard players set @a[r=3,x=355,y=64,z=-180,score_Countdown=0] Countdown 10
I found that depending on where I was stood within the area, I would not decrease in my count-down. I investigated into the Diamond shape radius check but have found that it's not fully diamond...
In the provided Screenshot, if my feet were at the RED location. my "Countdown" would not decrease.
If I stood in the GREEN location. My "Countdown" will. The green is FURTHER than the red, and the centre is not changed between loops.
The white/grey wools are a radius guide, inbetween the DARK grey is the "Black" which is the origin of the radius check.
For the record, NEITHER location SHOULD decrease the "Countdown"
Attachments
Comments 5
Decimals completely breaks it. Upon giving any of the co-ordinates in question a decimal it did nothing to the player within the radius (even if stood upon the very centre)
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Are you sure you did this correctly? A coordinate like x=355,y=64,z=-180 will always be on the edge of a block. For example if you use F3 and stand in the middle of a block you will get a "something.5" x and z coordinate.