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

"distance" within predicate no longer works

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.16 Pre-release 5, 1.16.1, 20w29a
    • 1.16.2 Pre-release 2
    • None
    • Community Consensus
    • Data Packs
    • Important

    Description

      The following predicate always is false:

      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
            "distance": {
            "x": {
              "min": 0,
              "max": 3
            },
            "z": {
              "min": 0,
              "max": 3
            }
          }
        }
      }

      Worked fine in 1.15.2. Broken since 20w18a.

      Attachments

        Activity

          People

            boq [Mojang] Bartosz Bok
            edta Jonas Busseniers
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: