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

All instances of entity-matching conditions do not function for advancements

XMLWordPrintable

    • Confirmed

      No condition that makes use of an "entity" source functions. This includes:

      1. minecraft:bred_animals trigger.
      2. minecraft:player_damaged trigger.
      3. minecraft:summoned_entity trigger.
      4. minecraft:player_killed_entity trigger.

      Given the example advancement, placed in world/data/advancements/custom/cow.json:

      {
          "criteria": {
              "findme": {
                  "trigger": "minecraft:bred_animals",
                  "conditions": {
                      "child": {
                          "type":"minecraft:cow"
                      }
                  }
              }
          }
      }
      

      And the following command to test it at will (see MC-115064 for namespace issue):

      /advancement test @p minecraft:custom/cow

      Breeding two cows to create a calf will not fulfill the condition, showing no errors. The same occurs with the parents array, though they would likely both be fixed at the same time.

            dinnerbone [Mojang] Nathan Adams
            skylinerw [Mod] Skylinerw
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: