forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminecraft-pack-mcmeta.json
More file actions
172 lines (172 loc) · 5.91 KB
/
minecraft-pack-mcmeta.json
File metadata and controls
172 lines (172 loc) · 5.91 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/minecraft-pack-mcmeta.json",
"additionalProperties": false,
"description": "Minecraft Resource/Data Pack Metadata\nhttps://minecraft.wiki/w/Pack.mcmeta#Format",
"definitions": {
"packFormat": {
"description": "https://minecraft.wiki/w/Pack_format",
"type": "integer",
"minimum": 1,
"maximum": 81
},
"packFormatRange": {
"anyOf": [
{
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"$ref": "#/definitions/packFormat"
}
},
{
"$ref": "#/definitions/packFormat"
},
{
"type": "object",
"properties": {
"min_inclusive": {
"$ref": "#/definitions/packFormat"
},
"max_inclusive": {
"$ref": "#/definitions/packFormat"
}
},
"additionalProperties": false,
"required": ["min_inclusive", "max_inclusive"]
}
]
},
"resourceLocation": {
"description": "An identifier of a game object\nhttps://minecraft.wiki/w/Resource_location",
"type": "string",
"pattern": "(?:([a-z0-9_\\-.]+:)?|:)[a-z0-9_\\-./]+"
}
},
"properties": {
"pack": {
"description": "Holds the pack information.",
"type": "object",
"properties": {
"description": {
"title": "description",
"description": "A text component that appears when hovering over the pack's name in the list given by the `/datapack list` command, or when viewing the pack in the Create World screen.",
"type": "string"
},
"pack_format": {
"$ref": "#/definitions/packFormat",
"description": "Determines the version(s) of Minecraft that this pack is compatible with."
},
"supported_formats": {
"$ref": "#/definitions/packFormatRange",
"description": "Describes a range for pack formats that this pack supports. The range has to include the value of `pack.pack_format`."
}
},
"additionalProperties": false,
"required": ["description", "pack_format"]
},
"features": {
"description": "Section for selecting experimental features.",
"type": "object",
"properties": {
"enabled": {
"description": "List of enabled feature flags.",
"type": "array",
"items": {
"$ref": "#/definitions/resourceLocation",
"description": "Resource location of a feature flag."
}
}
},
"additionalProperties": true,
"required": ["enabled"]
},
"filter": {
"description": "Section for filtering out files from packs applied below this one. Any file that matches one of the blocked patterns is treated as if it was not present in the pack at all.",
"type": "object",
"properties": {
"block": {
"type": "array",
"items": {
"type": "object",
"properties": {
"namespace": {
"description": "A regular expression for the namespace of files to be filtered out. If unspecified, it applies to every namespace.",
"type": "string",
"format": "regex",
"default": "[a-z0-9_\\-.]+"
},
"path": {
"description": "A regular expression for the paths of files to be filtered out. If unspecified, it applies to every file.",
"type": "string",
"format": "regex",
"default": "[a-z0-9_\\-./]+"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"overlays": {
"description": "Section for specifying the overlays, which are sub-packs applied over the \"normal\" contents of a pack. Their directories have their own assets and data directories, and are placed in the pack's root directory.",
"type": "object",
"properties": {
"entries": {
"description": "List of overlays. The order is important, as the first in the list is applied first.",
"type": "array",
"items": {
"description": "An overlay.",
"type": "object",
"properties": {
"formats": {
"$ref": "#/definitions/packFormatRange",
"description": "A range of pack formats when this overlay should be active."
},
"directory": {
"description": "The directory to overlay for the respective versions.",
"type": "string",
"pattern": "[a-z0-9_-]+"
}
},
"additionalProperties": false,
"required": ["formats", "directory"]
}
}
},
"additionalProperties": false,
"required": ["entries"]
},
"language": {
"description": "Contains additional languages to add to the language menu. Only present in resource packs.",
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"name": {
"description": "The full name of the language",
"type": "string"
},
"region": {
"description": "The country or region name",
"type": "string"
},
"bidirectional": {
"description": "If true, the language reads right to left.",
"type": "boolean"
}
},
"additionalProperties": false,
"required": ["name", "region"]
}
},
"fusion": {
"$comment": "Fusion properties for Minecraft resource packs",
"$ref": "https://json.schemastore.org/partial-fusion-pack-metadata.json#/definitions/fusion-properties"
}
},
"type": "object",
"required": ["pack"]
}