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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.13-pre10
    • Minecraft 17w47a, Minecraft 17w48a, Minecraft 18w05a, Minecraft 18w15a, Minecraft 18w22c
    • None
    • Confirmed

      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.

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

              Created:
              Updated:
              Resolved:
              CHK: