mojira.dev
MC-34736

/testfor and Comparator not working correctly

When running a testfor command in a command block with a redstone clock connected to it, the comparator does not update when the scoreboard objective it is testing for has changed.

The command is /testfor @a[score_place=1,score_place_min=1]

However, if I change it to zero, the comparator still gives an output.

There are 2 command blocks, the second one is just changing another scoreboard objective.

In the picture, it says in the previous output box 'That player can't be found' but it found me when I set the score to 1?? And, I don't understand why it wouldn't find me anyway?

Attachments

Comments 1

When you do test for, it needs to find a player that fits that criteria, otherwise it can't run.

I can't reproduce. The comparator is updating correctly for me.

Dan is awesome

(Unassigned)

Unconfirmed

redstone

Minecraft 13w39b

Retrieved