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

/execute if blocks only returning 1/0 for "result"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 17w47a, Minecraft 17w48a, Minecraft 18w05a, Minecraft 18w15a, Minecraft 18w22c
    • Fix Version/s: Minecraft 1.13-pre10
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      In the changelog of 17w45b, it said that "Made /execute if <..> return values if used on their own".

      I found that the result of the "if blocks" is 1(when source and destination regions match) or 0 (when they do not match).

      But this command's "precursor" , /testforblocks , returns the number of matching blocks, not only 0 or 1.

      if i want to get 0 or 1, i should use "success" mode. (this mode do not work as intended as well)
      -------------------------------------
      by the way,"if block" could not use on their own.

        Attachments

          Activity

            People

            • Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              chyx chenyuxuan
            • Votes:
              10 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: