JSON schemas for Minecraft Bedrock Edition add-on developers
These steps are for Visual Studio Code
- Create .vscode folder at root of project
- Create
settings.json
folder - Add the following:
// Allows comments in JSON files
"files.associations": {
"*.json": "jsonc"
},
// Schema associations
"json.schemas": [
{
"fileMatch": [
// Entity behavior files
// May change depending on your setup
"/*.behavior.json",
"/behaviors/entities/*.json"
],
"url": "https://raw.githubusercontent.com/bernie-g/minecraft-add-on-schemas/master/entity.schema.json"
}
]
The "fileMatch"
option checks the schema against any files ending in ".behavior.json"
or any file within the entities/
directory