I have a deathCount scoreboard called Death
with a repeating always active command block with the command /testfor @p[Death=1]
on singleplayer. Even when Death=1
, the connected comparator doesn't turn on.
Minecraft – Testfor comparator not turning on
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – way to /testfor a specific potion
- Minecraft Java Edition – How to Use /testfor Command to Detect Blocks in an Area
- Minecraft Java Edition – No Redstone Signal from Command Block Using /testfor
- Minecraft – How to use testfor to testfor players nearby
- Minecraft Java Edition – Fixing Testfor Trigger Issues in Command Blocks
Best Answer
The correct syntax for the target selector argument for scoreboard values is
score_NAME=X
orscore_NAME_min=X
, whereNAME
is the name of the objective andX
is an integer number. The former checks if the score is less than or equal to X, the latter is for greater than or equal to X. For a true equals, you need to put both.In your case, you'll want to run