These two execute command to detect condition dose not work appropriately in repeating command block, unless all the specific entities meet the same condition.
"If" Sub-command
Command : execute as @e[tag=test] at @s if block ~ ~-1 ~ minecraft:stone run summon arrow
I place Four armor stands with "test" tag on the grass block and One on the stone.Although one of them is on stone, "All" of them do not summon arrows. Unless I change the grass block below the four armor stands into stone, the command won't work.
Execute runs another execute
Command : execute at @e[tag=test] run execute as @a[distance=..2] run summon arrow
The condition is similar to the condition above. If I walk near any One of the armor stands within 2 blocks distance, they don't summon arrow, unless I place them together and make all of them are within 2 blocks distance away from me.
Linked issues
Comments 2
Even though you got marked as duplicate, your report made me do some more testing and find out something very important, which I added to MC-121934! 🙂
Also next time you report something, put {code} tags around your commands.
The command does not work, unless all the specific entities meet the same condition.
Hope to work as individual specific entity like the 1.12.* version, if any one of them meets the condition.