mojira.dev
MC-295955

fixed target for score type value_check does not work with player UUID

Using a player UUID fails when doing a fixed score value_check, but works for mobs.

/execute if predicate {condition:value_check,range:33,value:{type:score,score:foo,target:{type:fixed,name:"0b312116-ff54-4fe4-b76b-b60a986beaf2"}}}
Test failed
/execute if predicate {condition:value_check,range:34,value:{type:score,score:foo,target:{type:fixed,name:"5081a021-3833-4d22-938c-f1ac7f38ba3e"}}}
Test passed

compared to

/data get entity 0b312116-ff54-4fe4-b76b-b60a986beaf2 UUID
Knirch has the following entity data: [I; 187769110, -11251740, -1217677814, -1737757966]
/scoreboard players get 0b312116-ff54-4fe4-b76b-b60a986beaf2 foo
Knirch has 33 [foo]
/data get entity 5081a021-3833-4d22-938c-f1ac7f38ba3e UUID
Sheep has thew following entity data: [I; 1350672417, 942886178, -1819479636, 2134424126]
/scoreboard players get 5081a021-3833-4d22-938c-f1ac7f38ba3e foo
Sheep has 34 [foo]

Linked issues

Comments 2

Can confirm, but this is probably a corollary of MC-50247. And if you’re hardcoding something anyway it’s no extra trouble to simply hardcode the player’s username, in fact it’s a bit easier.

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

knirch

(Unassigned)

Confirmed

Commands

1.21.5

Retrieved