mojira.dev
MC-254370

Loot condition "entity_scores" cannot check all possible scores

The Bug

Some scores, like 16777217, cannot be checked by the loot condition "entity_scores".

Actual score

Predicate

Condition passes?

Should this happen?

16777216

16777216

yes

16777216

16777217

yes

16777217

16777216

no

16777217

16777217

no

To Reproduce

Install the test data pack

[media]

and run /reload, or

  1. /scoreboard objectives add _ dummy
  2. /scoreboard players set @s _ 16777217
  3. /execute unless predicate _

    → ❌ Test passed

  • data/minecraft/predicates/_.json

    {
        "condition": "minecraft:entity_scores",
        "scores": {
            "_": 16777217
        },
        "entity": "this"
    }

Linked issues

Attachments

Comments 1

Can confirm in 1.19.1.

[media]

SPGoding

(Unassigned)

Confirmed

Platform

Low

Commands, Data Packs

20w46a, 1.19.1 Pre-release 5, 1.19.1, 1.19.4, 1.20.4

Retrieved