-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathmod_schema.json
178 lines (178 loc) · 7.53 KB
/
mod_schema.json
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
173
174
175
176
177
178
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/SkyblockClient/SkyblockClient-REPO/main/loose_mod_bundle_schema.json",
"title": "Mod/Pack List",
"description": "A list of all the mods or a list of all the packs. Used internally in SkyClient.",
"type": "array",
"items": {
"type": "object",
"anyOf": [
{
"properties": {
"id": {
"type": "string",
"description": "The ID of the mod."
},
"nicknames": {
"type": "array",
"description": "A list of nicknames for the mod. Used by the Discord bot.",
"items": {
"type": "string"
}
},
"display": {
"type": "string",
"description": "The display name of the mod."
},
"enabled": {
"type": "boolean",
"description": "Whether or not the mod is enabled by default."
},
"creator": {
"type": "string",
"description": "The creator of the mod."
},
"discordcode": {
"type": "string",
"description": "The Discord code (discord.gg/[code]) of the mod."
},
"command": {
"type": "string",
"description": "The command to open the mod's config page."
},
"update_to_ids": {
"type": "array",
"description": "A list of mod IDs that this mod is replaced by. Used by SCU.",
"items": {
"type": "string"
}
},
"description": {
"type": "string",
"description": "The description of the mod."
},
"icon": {
"type": "string",
"description": "The icon file name of the mod."
},
"icon_scaling": {
"type": "string",
"description": "The scaling used in the icon. Used by the Java installer."
},
"actions": {
"type": "array",
"description": "A list of actions for the mod.",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"method": {
"type": "string",
"description": "The method of the action (hover)."
},
"document": {
"type": "string",
"description": "The document to show when hovered."
}
},
"required": ["method", "document"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "The icon file name of the action."
},
"text": {
"type": "string",
"description": "The text of the action."
},
"link": {
"type": "string",
"description": "The link for the action."
}
},
"required": ["icon", "text", "link"],
"additionalProperties": false
}
]
}
},
"categories": {
"type": "array",
"description": "A list of categories for the mod.",
"items": {
"enum": [
"1;Recommended",
"2;All Skyblock",
"3;For Dungeons",
"4;Recommended Skyblock",
"5;All PvP",
"6;Recommended PvP",
"7;For Creators"
]
}
},
"hidden": {
"type": "boolean",
"description": "Whether or not the mod is hidden."
},
"file": {
"type": "string",
"description": "The file name of the mod."
},
"config": {
"type": "boolean",
"description": "If specified, include everything from files."
},
"files": {
"type": "array",
"description": "Additional config files for the mod.",
"items": {
"type": "string"
}
},
"url": {
"type": "string",
"description": "The URL of the mod. If not specified, defaults to the Skyclient repo."
},
"forge_id": {
"type": "string",
"description": "The Forge ID of the mod."
},
"packages": {
"type": "array",
"description": "A list of mods to include.",
"items": {
"type": "string"
}
},
"hash": {
"type": "string",
"description": "The hash of the file."
}
},
"required": [
"id",
"display",
"creator",
"description",
"icon",
"actions",
"file",
"hash"
],
"additionalProperties": false
},
{
"properties": {
"hidden": { "type": "boolean", "const": true }
},
"required": ["hidden"]
}
]
}
}