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"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
{ "Source": "./behavior/entities/entities.json", "Destination": "../behavior/entities/entities.json" },
|
{ "Source": "./behavior/entities/entities.json", "Destination": "../behavior/entities/entities.json" },
|
||||||
{ "Source": "./behavior/features/features.json", "Destination": "../behavior/features/features.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/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/items/items.json", "Destination": "../behavior/items/items.json" },
|
||||||
{ "Source": "./behavior/recipes/recipes.json", "Destination": "../behavior/recipes/recipes.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" },
|
{ "Source": "./behavior/spawn_rules/spawn_rules.json", "Destination": "../behavior/spawn_rules/spawn_rules.json" },
|
||||||
|
|||||||
@@ -191,6 +191,10 @@
|
|||||||
],
|
],
|
||||||
"url": "https://raw.githubusercontent.com/Blockception/Minecraft-bedrock-json-schemas/main/behavior/dialogue/dialogue.json"
|
"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": [
|
"fileMatch": [
|
||||||
"behavior_packs/*/loot_tables/*.json",
|
"behavior_packs/*/loot_tables/*.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user