Minecraft Data Pack Advancement
Configuration file defining an advancement for a data pack for Minecraft
**/data/*/advancements/*.json
Validate
Check your file against this schema
Opens the validator with this schema already loaded. Paste your
**/data/*/advancements/*.json and it validates in your browser — nothing is uploaded.
Reference
Fields
Generated directly from the schema, following local
$refs, to two levels of nesting.
| Field | Type | Description |
|---|---|---|
display | object | Display options for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
display.icon | object | Icon options for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
display.icon.item | string | An item identifier for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
display.icon.nbt | string | A named binary tag of an item for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
display.title | string | boolean | number | array | object | — |
display.title.extra | array | A list of additional raw JSON text components to be displayed after this one. |
display.title.color | string | The color to render the content in. |
display.title.font | string | The resource location of the font for this component in the resource pack within assets/<namespace>/font. default: "minecraft:default" |
display.title.bold | boolean | Whether to render the content in bold. |
display.title.italic | boolean | Whether to render the content in italics. Note that text that is italicized by default, such as custom item names, can be unitalicized by setting this to false. |
display.title.underlined | boolean | Whether to underline the content. |
display.title.strikethrough | boolean | Whether to strikethrough the content. |
display.title.obfuscated | boolean | Whether to render the content obfuscated. |
display.title.insertion | string | When the text is shift-clicked by a player, this string is inserted in their chat input. It does not overwrite any existing text the player was writing. This only works in chat messages. |
display.title.clickEvent | object | Allows for events to occur when the player clicks on text. Only work in chat messages and written books, unless specified otherwise. |
display.title.hoverEvent | object | Allows for a tooltip to be displayed when the player hovers their mouse over text. |
display.title.text | string | number | boolean | A string containing plain text to display directly. Can also be a number or boolean that is displayed directly. |
display.title.translate | string | A translation identifier, corresponding to the identifiers found in loaded language files. Displayed as the corresponding text in the player's selected language. If no corresponding translation can be found, the identifier itself is used |
display.title.with | array | A list of raw JSON text components to be inserted into slots in the translation text. |
display.frame | string | A frame type for the icon for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend default: "task"one of: "challenge", "goal", "task" |
display.background | any | A background directory for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
display.description | string | boolean | number | array | object | — |
display.description.extra | array | A list of additional raw JSON text components to be displayed after this one. |
display.description.color | string | The color to render the content in. |
display.description.font | string | The resource location of the font for this component in the resource pack within assets/<namespace>/font. default: "minecraft:default" |
display.description.bold | boolean | Whether to render the content in bold. |
display.description.italic | boolean | Whether to render the content in italics. Note that text that is italicized by default, such as custom item names, can be unitalicized by setting this to false. |
display.description.underlined | boolean | Whether to underline the content. |
display.description.strikethrough | boolean | Whether to strikethrough the content. |
display.description.obfuscated | boolean | Whether to render the content obfuscated. |
display.description.insertion | string | When the text is shift-clicked by a player, this string is inserted in their chat input. It does not overwrite any existing text the player was writing. This only works in chat messages. |
display.description.clickEvent | object | Allows for events to occur when the player clicks on text. Only work in chat messages and written books, unless specified otherwise. |
display.description.hoverEvent | object | Allows for a tooltip to be displayed when the player hovers their mouse over text. |
display.description.text | string | number | boolean | A string containing plain text to display directly. Can also be a number or boolean that is displayed directly. |
display.description.translate | string | A translation identifier, corresponding to the identifiers found in loaded language files. Displayed as the corresponding text in the player's selected language. If no corresponding translation can be found, the identifier itself is used |
display.description.with | array | A list of raw JSON text components to be inserted into slots in the translation text. |
display.show_toast | boolean | Whether or not to show the toast pop up after completing the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend default: true |
display.annouce_to_chat | boolean | Whether or not to announce in the chat when the current advancement has been completed https://minecraft.wiki/w/Advancement/JSON_format#Legend default: true |
display.hidden | boolean | Whether or not to hide this advancement and all its children from the advancement screen until the current advancement have been completed https://minecraft.wiki/w/Advancement/JSON_format#Legend default: false |
parent | any | A parent directory for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
criteria | object | Required criteria have to be met for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
requirements | array<array> | Requirements for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
rewards | object | Rewards for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
rewards.recipes | array<string> | Recipes to unlock for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
rewards.loot | array<string> | Loot tables to give to the player for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
rewards.experience | integer | An experience amount for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
rewards.function | string | A function to run for the current advancement https://minecraft.wiki/w/Advancement/JSON_format#Legend |
Audit
What we found in this schema
- Declared draft: draft-07
- Validates cleanly against its own meta-schema.
- 41 properties, 100% carrying a description, max nesting depth 9.
Standards
Specification sections for the keywords in this schema
| Keyword | Document | Section |
|---|---|---|
$comment | JSON Schema Core, draft 2020-12 | §8.3 — Comments With "$comment" |
$id | JSON Schema Core, draft 2020-12 | §8.2.1 — The "$id" Keyword |
$ref | JSON Schema Core, draft 2020-12 | §8.2.3.1 — Direct References with "$ref" |
$schema | JSON Schema Core, draft 2020-12 | §8.1.1 — "$schema" |
additionalProperties | JSON Schema Core, draft 2020-12 | §10.3.2.3 — "additionalProperties" |
anyOf | JSON Schema Core, draft 2020-12 | §10.2.1.2 — "anyOf" |
default | JSON Schema Validation, draft 2020-12 | §9.2 — "default" |
description | JSON Schema Validation, draft 2020-12 | §9.1 — "title" and "description" |
enum | JSON Schema Validation, draft 2020-12 | §6.1.2 — "enum" |
items | JSON Schema Core, draft 2020-12 | §10.3.1.2 — "items" |
minLength | JSON Schema Validation, draft 2020-12 | §6.3.2 — "minLength" |
pattern | JSON Schema Validation, draft 2020-12 | §6.3.3 — "pattern" |
properties | JSON Schema Core, draft 2020-12 | §10.3.2.1 — "properties" |
type | JSON Schema Validation, draft 2020-12 | §6.1.1 — "type" |
uniqueItems | JSON Schema Validation, draft 2020-12 | §6.4.3 — "uniqueItems" |
Documents
- JSON Schema Core, draft 2020-12 — JSON Schema: A Media Type for Describing JSON Documents, A. Wright, H. Andrews, B. Hutton, G. Dennis, Eds., 2022. draft-bhutton-json-schema-01. An expired Internet-Draft with no formal standing in the IETF standards process; it is nonetheless the specification of record for JSON Schema 2020-12, published by json-schema.org.
- JSON Schema Validation, draft 2020-12 — JSON Schema Validation: A Vocabulary for Structural Validation of JSON, A. Wright, H. Andrews, B. Hutton, Eds., 2022.
- RFC 8259 (STD 90) — The JavaScript Object Notation (JSON) Data Interchange Format, T. Bray, Ed., 2017. The format a schema describes.
- RFC 6901 — JavaScript Object Notation (JSON) Pointer. Defines the pointer syntax used by $ref fragments and the ~0 / ~1 escapes.
Source
Attribution
This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.