138 lines
4.0 KiB
JSON
138 lines
4.0 KiB
JSON
{
|
|
"title": "RawText",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["rawtext"],
|
|
"examples": [{ "rawtext": [] }],
|
|
"definitions": {
|
|
"rawtext": {
|
|
"title": "Rawtext",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [{ "type": "string" }, { "$ref": "#/definitions/translate" }, { "$ref": "#/definitions/text" }, { "$ref": "#/definitions/selector" }, { "$ref": "#/definitions/score" }]
|
|
}
|
|
},
|
|
"selector": {
|
|
"title": "Selector",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["selector"],
|
|
"examples": [{ "selector": "@s" }, { "selector": "@p" }],
|
|
"properties": {
|
|
"selector": {
|
|
"title": "Selector",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "string",
|
|
"examples": ["@a", "@s", "@r", "@p", "@e", "@initiator"],
|
|
"pattern": "^@.*$"
|
|
}
|
|
}
|
|
},
|
|
"score": {
|
|
"title": "Score",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["score"],
|
|
"examples": [{ "score": { "name": "*", "objective": "score" } }, { "score": { "name": "@p", "objective": "score" } }],
|
|
"properties": {
|
|
"score": {
|
|
"title": "Score",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"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": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["text"],
|
|
"examples": [{ "text": "" }],
|
|
"properties": {
|
|
"text": {
|
|
"title": "Text",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"translate": {
|
|
"title": "Translate",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["translate"],
|
|
"examples": [{ "translate": "example.translation.key" }, { "translate": "example.translation.key", "with": ["\n"] }],
|
|
"properties": {
|
|
"translate": {
|
|
"title": "Translate",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "string"
|
|
},
|
|
"with": {
|
|
"$ref": "#/definitions/with"
|
|
}
|
|
}
|
|
},
|
|
"with": {
|
|
"title": "With",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"examples": ["\n", { "rawtext": [] }],
|
|
"items": {
|
|
"oneOf": [
|
|
{ "type": "string" },
|
|
{
|
|
"title": "Rawtext",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"rawtext": {
|
|
"$ref": "#/definitions/rawtext"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"properties": {
|
|
"rawtext": {
|
|
"$ref": "#/definitions/rawtext"
|
|
}
|
|
}
|
|
}
|