Added tick.json validation

This commit is contained in:
DaanV2
2021-09-27 10:44:55 +02:00
parent dc8858438b
commit 74b890479e
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Tick",
"description": "Mcfunction that are to be called per game tick (20 times per second)",
"additionalProperties": false,
"examples": [{ "values": ["foo"] }],
"properties": {
"values": {
"title": "Values",
"description": "The collection of function path to execute",
"type": "array",
"items": {
"title": "Function path",
"description": "The path to the function",
"type": "string",
"pattern": "[a-zA-Z_\\-\\/ ]+",
"examples": ["foo", "folder/foo"]
}
}
}
}