mojira.dev
MC-95576

Parameters score_X_min does not work

/testfor @e[score_X_min=1]

This command does not work in the current snapshot. In the past snapshot it did work.

Attachments

Comments 13

what's the exact command used for:
testing?
creating the scoreboard?

what is the score of the entity?

Works fine for me:

/scoreboard objectives add dummy dummy
/scoreboard players set redstonehelper dummy 10
/testfor @e[score_dummy_min=5]

produces:

[22:49:47] [Client thread/INFO]: [CHAT] Found redstonehelper

You probobly just made a typo somewhere, double check your commands, and you should find it

You're all wrong I know how to use command blocks I have all my objectives, the armorstand has all the objective X=10, but the testfor block is not working. I'll show pictures. Make sure you guys are in 16w02a.

3 more comments

show us the "contraption" in screenshots (objective in sidebar please)

I attached a screenshot it has everything in it. I even created a new world to test it. I even attached me finding the Armorstand in chat

Screenshot of this not working in my actual world that I need it for.

I found the problem. When updating the snapshot from 15w51b to 16w02a mobs with scoreboard objectives will no longer work. The testfor will testfor the mob name, but in the scoreboard objectives tab it will have to display the mobs UUID, and not the mob's name itself. I guess this is to prevent confusion between an Armorstand with the same name as a player.

So basically in 15w51b the testfor command would testfor a mob with a name for their name, while in 16w02a, to testfor a mob the mob UUID must be in the sidebar.

How I fixed it:

/scoreboard players reset ZombiesSpawned

@@unknown Scoreboards tracking non-player entity UUIDs has been a thing since the 1.8 snapshots. You likely accidentally created a fake player named ZombiesSpawned instead of targeting an entity of that name, or else something different is at play here.

Anthony Jemmer

(Unassigned)

Unconfirmed

Minecraft 16w02a

Retrieved