Modrinth · Minecraft mod
Codec2Schema
A tool to convert codecs to JSON schemas.
Quick answer
Which Codec2Schema release matches 26w14a?
Codec2Schema 0.3.6+26.1.2 targets 26.1, 26.1.1, 26w14a with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is Codec2Schema required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Codec2Schema 0.3.6+26.1.2 need?
0.3.6+26.1.2 on 26w14a. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Codec2Schema without breaking your instance.
Built for Codec2Schema 0.3.6+26.1.2 on 26w14a. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.3.6+26.1.2. It targets 26.1, 26.1.1, 26w14a with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.3.6+26.1.2. It opens that exact file at the source.
About this project
What does Codec2Schema add?
Codec2Schema
Through the power of mixins, sheer will, and unchecked type casts, this mod transforms codecs into (mostly) usable JSON schemas.
What is a Codec?
Codecs are Mojang's way of easily serializing data to and from JSON. They define the structure of an object, meaning JSON schemas can be generated from them.
What is a JSON Schema?
A JSON schema is a file that describes how JSON files should be structured, and can be used by IDEs to provide autocomplete when creating or editing JSON files.
About This Mod
When installed, this mod exports JSON schemas for data and resource pack files to <YOUR GAME DIRECTORY>/codec2schema. You can use the API to export your own codecs as well!
The generated JSON schemas will have autocomplete for registries (items, blocks, etc), including modded content.
This mod is not perfect: there are many edge cases that aren't or can't be accounted for.
Example
The following is the generated JSON schema for regional compliancies warnings:
{
"$schema": "https://json-schema.org/draft-07/schema",
"$ref": "#/definitions/def",
"definitions": {
"def": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/def_1"
}
}
},
"def_1": {
"type": "object",
"properties": {
"delay": {
"type": "integer",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"default": 0
},
"period": {
"type": "integer",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807
},
"title": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"period",
"title",
"message"
]
}
}
}
It's not perfect, but it's good enough.
Project description from Modrinth.
Pick your setup
Codec2Schema by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.3-snapshot-7
1 loader build26.3-snapshot-6
1 loader build26.3-snapshot-5
1 loader build26.3-snapshot-4
1 loader build26.3-snapshot-3
1 loader build26.3-snapshot-2
1 loader build26.3-snapshot-1
1 loader build26.2-snapshot-8
1 loader build26.2-snapshot-7
1 loader build26.2-snapshot-6
1 loader build26.2-snapshot-5
1 loader buildShowing the newest 12 of 48 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Codec2Schema versions and loaders
0.3.6+26.1.2
codec2schema-0.3.6+26.1.2.jar
11 Jun 2026
0.3.5+26.1.2
codec2schema-0.3.5+26.1.2.jar
20 May 2026
0.3.4+26.1.2
codec2schema-0.3.4+26.1.2.jar
12 Apr 2026
0.3.3+26.1.1
codec2schema-0.3.3+26.1.1.jar
2 Apr 2026
0.3.2+26.1
codec2schema-0.3.2+26.1.jar
1 Apr 2026
Looking for an older file? The official Modrinth project page is in Resources.