mojira.dev
MC-16973

Command Block outputs on even if the arguments are not the right ones

Expected Behaviour:
The command block outputs off when the arguments are not right.

Actual Behaviour:
Outputs on even if the arguments of the command are not right. Happens with

/testfor @p[score_<objective>=number]

Steps to Reproduce:
1-Make an objective.
2-Set it to display (Optional but helpful)
3-Set a command block testing for

/testfor @p[score_<objective>=1]

4-Update the command block with a redstone pulse.

Note that the output stays on even and you have 0 points. score_<objective>=number is supposed to work only with a specific number

Attachments

Comments 3

score_name passes players with at most the specified number of points, while score_name_min passes players with at least the specified number of points.

http://www.minecraftwiki.net/wiki/Scoreboard#Objectives

If you want to check for a specified number of scorepoints you have to do the follwing:

testfor @p[score_name=x,score_name_min=x]

Well that should be score_name_max maximum while score_name should be the exact number that it says. Very weird intended feature.

Daniel "Glampkoo"

(Unassigned)

Unconfirmed

command_block, objectives, redstone-comparator, scoreboard, testfor

Minecraft 1.5.2, Snapshot 13w22a

Retrieved