126 lines
3.0 KiB
JSON
126 lines
3.0 KiB
JSON
{
|
|
"title": "RawText",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["rawtext"],
|
|
"definitions": {
|
|
"rawtext": {
|
|
"title": "Rawtext",
|
|
"description": "",
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{ "type": "string" },
|
|
{ "$ref": "#/definitions/translate" },
|
|
{ "$ref": "#/definitions/text" },
|
|
{ "$ref": "#/definitions/selector" },
|
|
{ "$ref": "#/definitions/score" }
|
|
]
|
|
}
|
|
},
|
|
"selector": {
|
|
"title": "Selector",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["selector"],
|
|
"properties": {
|
|
"selector": {
|
|
"title": "Selector",
|
|
"description": "",
|
|
"type": "string",
|
|
"examples": ["@a", "@s", "@r", "@p", "@e", "@initiator"],
|
|
"pattern": "^@.*$"
|
|
}
|
|
}
|
|
},
|
|
"score": {
|
|
"title": "Score",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["score"],
|
|
"properties": {
|
|
"score": {
|
|
"title": "Score",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["name", "objective"],
|
|
"properties": {
|
|
"name": {
|
|
"title": "Selector",
|
|
"description": "A selector, player name (can be fake), or *",
|
|
"type": "string",
|
|
"examples": ["@a", "@s", "@r", "@p", "@e", "@initiator", "*"]
|
|
},
|
|
"objective": {
|
|
"title": "Objective",
|
|
"description": "",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["text"],
|
|
"properties": {
|
|
"text": {
|
|
"title": "Text",
|
|
"description": "",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"translate": {
|
|
"title": "Translate",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["translate"],
|
|
"properties": {
|
|
"translate": {
|
|
"title": "Translate",
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"with": {
|
|
"$ref": "#/definitions/with"
|
|
}
|
|
}
|
|
},
|
|
"with": {
|
|
"title": "With",
|
|
"description": "",
|
|
"examples": ["\n", { "rawtext": [] }],
|
|
"items": {
|
|
"oneOf": [
|
|
{ "type": "string" },
|
|
{
|
|
"title": "Rawtext",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"rawtext": {
|
|
"$ref": "#/definitions/rawtext"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"properties": {
|
|
"rawtext": {
|
|
"$ref": "#/definitions/rawtext"
|
|
}
|
|
}
|
|
}
|