Updated to: Minecraft Java Edition 19w38b
A VSCode extension and NPM package providing JSON schemas for Minecraft: Java Edition datapack JSON files. Information about json schemas can be found at json-schema.org.
- 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
Installation on VSCode (for Use)
- Install VSCode if you haven't got it in your computer.
- Download and install this extension on VSCode Marketplace.
- Alternatives, you can search
SPGoding.datapack-json in the sidebar and install it.
- Open VSCode in your datapack folder (
.minecraft/saves/<world>/datapacks/<your datapack folder>). You can do this by right-clicking the folder and select 'Open with Code'.
Installation via NPM (for Projects)
You can install this package by executing
$ npm i datapack-json.
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
predicate.json: JSON Schema for
recipe.json: JSON Schema for recipes.
scripts: Stores useful tools.
registries.json generated by Minecraft data generator to
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.
Contributions are welcome!