Mojira Archive
MC-122216

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

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.

Fixed

chenyuxuan

[Mojang] Bartosz Bok

2017-11-22, 08:02 PM

2018-07-18, 04:50 PM

2018-07-17, 04:22 PM

10

7

Confirmed

Minecraft 17w47a - Minecraft 18w22cMinecraft 17w47a, Minecraft 17w48a, Minecraft 18w05a, Minecraft 18w15a, Minecraft 18w22c

Minecraft 1.13-pre10