-
Notifications
You must be signed in to change notification settings - Fork 11
Advancement Criteria
DaFuqs edited this page Mar 23, 2023
·
3 revisions
Revelationary adds new additional advancement criteria - meaning requirements that you can specify in your advancement.json as "player must have done that to unlock this advancement".
You can find documentation about vanilla advancement predicates here: https://minecraft.gamepedia.com/wiki/Advancement/JSON_format
Triggered when the player receives an advancement. A great way to build complex requirement chains.
- "advancement_identifier": The full qualified identifier of the required advancement
"criteria": {
"has_vegetal": {
"trigger":"revelationary:advancement_gotten",
"conditions": { "advancement_identifier": "spectrum:collect_vegetal" }
},
"collected_topaz_shard": {
"trigger":"revelationary:advancement_gotten",
"conditions": { "advancement_identifier": "spectrum:hidden/collect_shards/collect_topaz_shard" }
},
"collected_amethyst_shard": {
"trigger":"revelationary:advancement_gotten",
"conditions": { "advancement_identifier": "spectrum:hidden/collect_shards/collect_amethyst_shard" }
}
}
Triggered when the player receives an advancement. Matches multiple advancements with an optional min-max count.
- "advancement_identifiers": A list of identifiers of the advancements you want to check
- "count": An int provider (min-max) that get's used for checking the count of advancements in the list the player has (optional). If omitted the criterion only validates as true when they got all advancements in the list
"criteria": {
"has_collected_enough_hints": {
"trigger": "revelationary:advancement_count",
"conditions": {
"count": {
"min": 6
},
"advancement_identifiers": [
"spectrum:endgame/revive_black_sludge_plant",
"spectrum:lategame/collect_dragonbone",
"spectrum:lategame/find_excavation_site",
"spectrum:lategame/find_forgotten_city",
"spectrum:lategame/find_excavation_site",
"spectrum:lategame/reached_dd_floor",
"spectrum:lategame/strike_up_hummingstone_hymn",
"spectrum:lategame/visit_all_deeper_down_biomes",
"spectrum:lategame/collect_moonstone_shard"
]
}
}
}
When a block is revealed to the player. Does not trigger for items.
- "revelation_identifier": The block identifier that was revealed. If empty or omitted triggers for any revelation.
"criteria": {
"revealed_sparklestone": {
"trigger":"revelationary:had_revelation",
"conditions": { "revelation_identifier": "spectrum:sparklestone_ore" }
}
}