datapack-json-schemas

JSON schemas for Minecraft: Java Edition datapack JSON files.


Keywords
minecraft, parsers
License
CC-BY-4.0
Install
npm install datapack-json-schemas@1.3.1

Documentation

datapack-json-schemas

CircleCI npm License semantic-release Gitmoji

Update to: Minecraft Java Edition 1.14.4-pre5

JSON schemas for Minecraft: Java Edition datapack JSON files. Information about json schemas can be found at json-schema.org.

You can see vscode-datapack-helper-plus-json for a use if you are using VSCode.

Design choices

  • The use of the minecraft: namespace is mandatory anywhere it can be used. This does mean that it will not necessarily validate against all vanilla files

File Struture

  • src: Stores all JSON Schemas.
    • shared: Stores all common JSON Schemas. Some of them are generated by ./scripts/convert.js so you don't change them manually.
    • tags: Stores JSON Schemas for tags.
    • advancement.json: JSON Schema for advancements.
    • loot_table.json: JSON Schema for loot tables.
    • pack.mcmeta.json: JSON Schema for pack.mcmeta.
    • recipe.json: JSON Schema for recipes.
  • scripts: Stores useful tools.
    • convert.js: Convert registries.json generated by Minecraft data generator to shared files

License

Creative Commons Licence
This work is licensed under a Creative Commons Attribution 4.0 International License.

This work is based on Levertion/minecraft-json-schema created by @Levertion which is released under a CC BY 4.0 license. I keep it updated with Minecraft.

Contributing

Contributions are welcome!