bernie-g / minecraft-add-on-schemas

JSON schemas for Minecraft add-on developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minecraft-add-on-schemas

JSON schemas for Minecraft Bedrock Edition add-on developers

Usage

These steps are for Visual Studio Code

Local to project

  1. Create .vscode folder at root of project
  2. Create settings.json folder
  3. 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

About

JSON schemas for Minecraft add-on developers