-
Notifications
You must be signed in to change notification settings - Fork 222
Expand file tree
/
Copy pathadvancement.schema.json
More file actions
112 lines (112 loc) · 4.47 KB
/
advancement.schema.json
File metadata and controls
112 lines (112 loc) · 4.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Minecraft Advancement JSON",
"type": "object",
"properties": {
"display": {
"type": "object",
"properties": {
"icon": {
"type": "object",
"properties": {
"item": { "type": "string" },
"data": { "type": "integer", "minimum": 0, "maximum": 32767 }
},
"required": [ "item" ]
},
"title": { "$ref": "common.json#/textComponent" },
"frame": {
"anyOf": [
{ "type": "string" },
{ "enum": [ "task", "goal", "challenge" ], "default": "task" }
]
},
"background": { "type": "string" },
"description": { "$ref": "common.json#/textComponent" },
"show_toast": { "type": "boolean" },
"announce_to_chat": { "type": "boolean" },
"hidden": { "type": "boolean" }
},
"required": [ "title", "description", "icon" ]
},
"parent": { "type": "string" },
"criteria": {
"type": "object",
"additionalProperties": { "$ref": "#/definitions/trigger" },
"minProperties": 1
},
"requirements": {
"type": "array",
"items": {
"type": "array",
"items": { "type": "string", "minLength": 1 }
}
},
"rewards": {
"type": "object",
"properties": {
"recipes": {
"type": "array",
"items": { "type": "string", "minLength": 1 }
},
"loot": {
"type": "array",
"items": { "type": "string", "minLength": 1 }
},
"experience": { "type": "integer" },
"function": { "type": "string" }
}
}
},
"require": [ "criteria" ],
"definitions": {
"trigger": {
"type": "object",
"properties": {
"trigger": {
"anyOf": [
{ "type": "string" },
{
"type": "string",
"enum": [
"minecraft:bred_animals",
"minecraft:brewed_potion",
"minecraft:changed_dimension",
"minecraft:channeled_lightning",
"minecraft:construct_beacon",
"minecraft:consume_item",
"minecraft:cured_zombie_villager",
"minecraft:effects_changed",
"minecraft:enchanted_item",
"minecraft:enter_block",
"minecraft:entity_hurt_player",
"minecraft:entity_killed_player",
"minecraft:filled_bucket",
"minecraft:fishing_rod_hooked",
"minecraft:impossible",
"minecraft:inventory_changed",
"minecraft:item_durability_changed",
"minecraft:levitation",
"minecraft:location",
"minecraft:nether_travel",
"minecraft:nether_travel",
"minecraft:placed_block",
"minecraft:player_hurt_entity",
"minecraft:player_killed_entity",
"minecraft:recipe_unlocked",
"minecraft:slept_in_bed",
"minecraft:summoned_entity",
"minecraft:tame_animal",
"minecraft:tick",
"minecraft:used_ender_eye",
"minecraft:used_totem",
"minecraft:villager_trade"
]
}
]
}
},
"required": [ "trigger" ]
}
}
}