These two execute command to detect condition dose not work appropriately in repeating command block, unless all the specific entities meet the same condition.
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.