• Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w50a
    • None
    • windows 8.1, latest java version.
    • Unconfirmed

      Before I begin, I would like to state that I am no sure if this is a bug or if it works as intended. If it works as intended, please tell me whats the correct syntax.
      What I am trying to achieve is that when I run certain command, it would run as all entities[tag=test], which would check if there is a block in them, and then kill itself if it there's not. The old syntax would look like this: "/execute @e[tag=test] ~ ~ ~ detect stone ~ ~ ~ 0 kill @p[tag=test]".
      I tried to recreate this command in new snapshot, but none has worked. Here is the command that I think should work, but doesn't:"/execute as @e[tag=trap] at @s if block ~ ~ ~ minecraft:daylight_detector run say test". This command works fine if all the armor stands match the daylight detector. But when not all of them match it, not a single armor stand runs /say test.
      For example:
      Theres 3 armor stand and each one has daylight detector in them. Upon executing command, the chat displays:"test" 3 times.
      When I remove 1 daylight detector and run the command again, there is no messages in chat. This I think is a bug, because I think there should be 2 "test" in chat, not none.

            Unassigned Unassigned
            Matic2000 Matic
            0 Vote for this issue
            0 Start watching this issue