mojira.dev
MC-142200

minecraft:killed_by_crossbow advancement trigger does not work correctly in custom advancements

The new advancement trigger "minecraft:killed_by_crossbow" does not appear to work correctly when using it for custom advancements. While vanilla advancements that use it (namely, "Who's the Pillager Now", "Two Birds, One Arrow" and "Arbalistic") work properly, if you try to create a custom advancement or modify the vanilla advancements to use the trigger, even if you use the exact same json file but in a datapack, it does not work at all.

 

For example, if you have criteria with code simply as follows:

"criteria": { 
    "crossbow": { 
        "trigger": "minecraft:killed_by_crossbow" 
    }
}

Then kill any mob by shooting it with a crossbow, notice you do not get the advancement.

 

Comments 2

This bug still exists in 19w08b in some form, however I have found that using the same criteria as found and used in "Two Birds, One Arrow" and "Arbalistic" in a custom advancement, it will work when previously it didn't, however creating a custom advancement with any different criteria using that trigger still does not work (eg even if you use the simple criteria in the description).

This bug appears to be fixed fully in 19w11a. Please marked as "fixed".

Cavinator1

(Unassigned)

Unconfirmed

Advancements, advancement, advancement-criteria, advancement-trigger, crossbow, datapack, killed_by_crossbow, trigger

Minecraft 19w02a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a

Minecraft 19w11a

Retrieved