Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-254370

Loot condition "entity_scores" cannot check all possible scores

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 20w46a, 1.19.1 Pre-release 5, 1.19.1, 1.19.4, 1.20.4
    • None
    • Confirmed
    • Commands, Data Packs
    • Low
    • Platform

      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 MC-254370.zip 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"
        }
        

        1. MC-254370.png
          275 kB
          [Mod] Avoma

            Unassigned Unassigned
            SPGoding [Mod] SPGoding
            Votes:
            10 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              CHK: