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"]
}
}
}
}

View File

@@ -40,6 +40,7 @@
{ "Source": "./behavior/entities/entities.json", "Destination": "../behavior/entities/entities.json" },
{ "Source": "./behavior/features/features.json", "Destination": "../behavior/features/features.json" },
{ "Source": "./behavior/feature_rules/feature_rules.json", "Destination": "../behavior/feature_rules/feature_rules.json" },
{ "Source": "./behavior/functions/tick.json", "Destination": "../behavior/functions/tick.json" },
{ "Source": "./behavior/items/items.json", "Destination": "../behavior/items/items.json" },
{ "Source": "./behavior/recipes/recipes.json", "Destination": "../behavior/recipes/recipes.json" },
{ "Source": "./behavior/spawn_rules/spawn_rules.json", "Destination": "../behavior/spawn_rules/spawn_rules.json" },

View File

@@ -191,6 +191,10 @@
],
"url": "https://raw.githubusercontent.com/Blockception/Minecraft-bedrock-json-schemas/main/behavior/dialogue/dialogue.json"
},
{
"fileMatch": [ "functions/tick.json" ],
"url": "https://raw.githubusercontent.com/Blockception/Minecraft-bedrock-json-schemas/main/behavior/functions/tick.json"
},
{
"fileMatch": [
"behavior_packs/*/loot_tables/*.json",