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

Min and max are both required in entity_scores condition

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w46a
    • 1.15.2, 20w20a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 3, 1.16.2
    • None
    • Confirmed
    • Data Packs

    Description

      The bug

      When checking a range in the entity_scores condition, you either need to specify an exact value, or both the lower and upper bounds. Using only min or only max results in the loot table or predicate not being loaded.

      How to reproduce

      1. Create the following predicate in a data pack
        {
          "condition": "minecraft:entity_scores",
          "entity": "this",
          "scores": {
            "foo": {
              "min": 1
            }
          }
        }
      2. Reload the world and notice that the predicate did not load
        "Missing max, expected to find a Float"

      Attachments

        Activity

          People

            boq [Mojang] Bartosz Bok
            Misoloo [Helper] Misode
            Votes:
            18 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: