mojira.dev
MC-122691

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

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.

Related issues

Comments

No comments.

tryashtar

(Unassigned)

Confirmed

/setblock

Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b

Retrieved