Mojira Archive
MC-115067

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

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.

Fixed

[Mod] Skylinerw

[Mojang] Nathan Adams

2017-03-31, 02:33 AM

2017-04-03, 10:46 PM

2017-04-03, 01:01 PM

7

3

Confirmed

advancement, bred_animals, entity, player_damaged, player_killed_entity, source_entity, summoned_entity

Minecraft 17w13a

Minecraft 17w14a