Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-122821

Execute command to detect condition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w48a
    • Unconfirmed

      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.

            Unassigned Unassigned
            JeffSyuChujs Jeff Syu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: