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

'/setblock air destroy' succeeds, but gives error message and returns 0 for result/success

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b
    • Windows 10
    • Confirmed

      To reproduce, run the following commands in tandem:

      /setblock ~1 ~ ~ stone
      /setblock ~1 ~ ~ air destroy
      

      After the second, you'll note the stone was destroyed as expected. However, the message "Could not set the block" appears in chat, and the command's result and success return values are both 0.

      I was unable to obtain this behavior using any block other than air to replace the first. I was unable to obtain different behavior by trying to replace different blocks, including air itself. Note /setblock ~ ~ ~ air default destroy succeeded when replacing air in 1.12.2.

            Unassigned Unassigned
            tryashtar [Mod] tryashtar
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: