-
Bug
-
Resolution: Invalid
-
None
-
Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2
-
None
-
Confirmed
The second selector of the /stats entity command does not find area_effect_clouds that are in the center of a block when using r=0 or dy=?. This is related to MC-111144 and might even be a duplicate, but it does not behave exactly the same way and is probably not related to MC-88533.
Steps to reproduce:
/scoreboard objectives add STATS_TEST dummy
/scoreboard objectives setdisplay sidebar STATS_TEST
/kill @e[type=area_effect_cloud,name=statsTest]
/summon area_effect_cloud ~ ~0 ~ {CustomName:"statsTest",Duration:2147483647}
/scoreboard players add @e[type=area_effect_cloud,name=statsTest] STATS_TEST 0
/stats entity @e[type=area_effect_cloud,name=statsTest] set SuccessCount @e[type=area_effect_cloud,name=statsTest,r=0,c=1] STATS_TEST
/execute @e[type=area_effect_cloud,name=statsTest] ~ ~ ~ testfor @p
After the execute-testfor command the area_effect_cloud should have a score of 1, but it has a score of 0. If I repeat the same experiment, but summon the area_effect_cloud at other y values and use other selectors instead of
r=0
these are the results:
r=0 | r=1 | dy=0 | dy=1 | |
---|---|---|---|---|
~-.00000000000001 | ||||
~.0 | ||||
~.00000000000001 | ||||
~.1 | ||||
~.4 | ||||
~.5 | ||||
~.6 | ||||
~.9 | ||||
~1 |
Note that the relative coordinates are executed from a command block, so ~.0 relates to a y coordinate like 57.5. I could not observe any difference when modifying the x or z axis, this bug seems to only affect the y axis.
/tp @e[type=area_effect_cloud,name=statsTest] ~ ~ ~
summon falling_block ~ ~1 ~ {Block:redstone_block,Time:1,Passengers:[{id:falling_block,Block:activator_rail,Time:1},{id:commandblock_minecart,Command:fill ~1 ~-2 ~1 ~9 ~-2 ~6 air},{id:commandblock_minecart,Command:setblock ~2 ~-2 ~6 command_block 5 {Command:scoreboard objectives add STATS_TEST dummy}},{id:commandblock_minecart,Command:setblock ~3 ~-2 ~6 chain_command_block 5 {auto:1,Command:scoreboard objectives setdisplay sidebar STATS_TEST}},{id:commandblock_minecart,Command:setblock ~4 ~-2 ~6 chain_command_block 5 {auto:1,Command:kill @e[type=area_effect_cloud,name=statsTest]}},{id:commandblock_minecart,Command:setblock ~5 ~-2 ~6 chain_command_block 5 {auto:1,Command:summon area_effect_cloud ~ ~ ~ {CustomName:"statsTest",Duration:2147483647}}},{id:commandblock_minecart,Command:setblock ~6 ~-2 ~6 chain_command_block 5 {auto:1,Command:scoreboard players add @e[type=area_effect_cloud,name=statsTest] STATS_TEST 0}},{id:commandblock_minecart,Command:setblock ~7 ~-2 ~6 chain_command_block 5 {auto:1,Command:stats entity @e[type=area_effect_cloud,name=statsTest] set SuccessCount @e[type=area_effect_cloud,name=statsTest,r=0,c=1] STATS_TEST}},{id:commandblock_minecart,Command:setblock ~8 ~-2 ~6 chain_command_block 5 {auto:1,Command:execute @e[type=area_effect_cloud,name=statsTest] ~ ~ ~ testfor @p}},{id:commandblock_minecart,Command:setblock ~ ~-2 ~ command_block},{id:commandblock_minecart,Command:setblock ~ ~2 ~ command_block 0 {Command:fill ~ ~-3 ~ ~ ~ ~ air}},{id:commandblock_minecart,Command:setblock ~ ~1 ~ redstone_block},{id:commandblock_minecart,Command:kill @e[type=commandblock_minecart,r=0]}]}
- relates to
-
MC-111144 /stats does not find marker armorstands in upper half of a block
- Resolved