Skip to main content

Grant Advancement (Entity Action Type)

Grants an advancement to the player, or only some of its criteria.

Type ID: apoli:grant_advancement

Fields

FieldTypeDefaultDescription
advancementIdentifieroptionalThe ID of the advancement to grant. The action does nothing without one.
criteriaArray of StringoptionalThe criteria of the advancement to grant.
criterionStringoptionalA single criterion of the advancement to grant.
selectionString"only"Which related advancements are included, the same as the /advancement command: "only", "through", "from", "until" or "everything".

Examples

"entity_action": {
    "type": "apoli:grant_advancement",
    "advancement": "minecraft:adventure/arbalistic"
}

This grants the player the Arbalistic advancement.