mojira.dev
MC-8120

The /clear command used with a command block always give an output while tested by a comparator

When a command block operate the "/clear" command, even when it doesn't remove any item, ("removing 0 items) it considers it succesful and therefore gives an output when tested with a comparator, becoming useless.

Linked issues

Comments 2

Thats because the comparator takes the signal, that you used to trigger the commandblock out of the commandblock. For the testfor command it's different, because it has an extra clause in the code. Not a bug.

The clear command still succeeds even if it doesn't remove anything. It only fails if it cannot find the player.

Jean MARTIN

(Unassigned)

Unconfirmed

redstone

Snapshot 13w03a

Retrieved