Added tick.json validation
This commit is contained in:
21
source/behavior/functions/tick.json
Normal file
21
source/behavior/functions/tick.json
Normal 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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user