Skip to content

Advancement Criteria

DaFuqs edited this page Jun 14, 2022 · 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

Advancement gotten: "revelationary:advancement_gotten"

Triggered when the player receives an advancement. A great way to build complex requirement chains.

Properties

  • "advancement_identifier": The full qualified identifier of the required advancement

Example

"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" }
  }
}

Hidden block/item revealed: "revelationary:had_revelation"

When a block or item is revealed to the player this

Properties

  • "revelation_identifier": The block or item identifier that was revealed. If empty or omitted triggers for any revelation.

Example

"criteria": {
  "revealed_sparklestone": {
    "trigger":"revelationary:had_revelation",
    "conditions": { "revelation_identifier": "spectrum:sparklestone_ore" }
  }
}
Clone this wiki locally