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

"Optional" commands following conditional execute chain succeed/fail strangely

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 17w45b
    • Minecraft 17w45a
    • Windows 10
    • Confirmed

      In order to fully replace testfor and simply return the number of entities existing, something like execute if entity @e[type=squid] or execute if entity @e[type=squid] run should work. However, it instead exhibits the following behavior:

      if block: If the block is found, a syntax error is thrown. if the block is not found, nothing happens.
      if entity: If the entity is found, a syntax error is thrown. If the entity is not found, the message is "No entity was found."
      if score: If the score comparison succeeded, a syntax error is thrown. If the score comparison failed, nothing happens.
      if blocks: If the regions match, a syntax error is thrown. If the regions do not match, nothing happens.

      NOTE: Excluding run at the end of each of these commands after the relevant arguments results in a syntax error upon running.

            dinnerbone [Mojang] Nathan Adams
            tryashtar [Mod] tryashtar
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: