ModsFinder
CO

Codec2Schema

by Tr100000

Codec2Schema is a Fabric tool that turns Mojang codecs into JSON schema files, so editors can autocomplete data-driven JSON files written for modded content.

FabricClient or server, optionalMIT LicenseOpen source1.21.11 – 26.3

What it does

Codecs are the way Minecraft serializes data stored as JSON. Codec2Schema reads the codecs that the game and installed mods register, then writes a JSON schema describing the structure each one expects. The installed mod exports these schemas together with data resource pack files in the codec2schema folder. An IDE that supports JSON schemas can use them to suggest fields and values while creating or editing those files. Generated schemas also list registry entries such as items and blocks, including content added by other mods.

The tool works through mixins and unchecked type casts, so it can transform most codecs without changes to them. It is a dedicated tool for schema export and carries no gameplay content. Many edge cases cannot be accounted for, and the author describes the output as good enough rather than perfect, so checking generated schemas against the warnings they produce is part of the workflow. Developers can also use the API to export their own codecs. Codec2Schema is open source under the MIT License and is published for Fabric only, with 6 release versions across 1.21.11 – 26.3.

Key features

  1. JSON schema export

    Codecs from the game and installed mods are written out as JSON schema files in the codec2schema folder.

  2. Resource pack data export

    Data resource pack files are exported alongside the schemas, so the output matches what the game reads.

  3. Registry autocomplete

    Generated schemas list registry entries, including items and blocks from modded content, for autocomplete in editors.

  4. Custom codec export API

    Developers can use the API to export their own codecs as schemas in the same way.

Compatibility

Latest build for each game version and loader.

26.30.3.7+26.3-pre-1
26.20.3.7+26.2
26.1.20.3.7+26.1.2
26.1.10.3.7+26.1.2
26.10.3.7+26.1.2
1.21.110.3.7+1.21.11
ReleaseBetaAlphaNot available

This mod also publishes snapshot builds. Snapshots are not shown in the matrix.

How it compares

Full comparison

Codecium is a Fabric mod that works on either side, and neither side needs it, is open source under the MIT License and is published for 1.21.4 – 26.3. AbstractedUtilities is also Fabric, works on either side with neither side needing it, and is open source under the MIT License, with files for 1.21.10 – 26.3. Zine is a Fabric mod that must run on both client and server, is not open source, and is released under All rights reserved for 1.21.5 – 26.3.

ModLoadersGame versionsEnvironmentUpdated
Codec2SchemaFabric1.21.11 – 26.3Client or server, optional2026-10-07
CodeciumFabric1.21.4 – 26.3Client or server, optional2026-07-22
AbstractedUtilitiesFabric1.21.10 – 26.3Client or server, optional2026-10-08
ZineFabric1.21.5 – 26.3Client and server2026-09-19

Questions

Which loader does Codec2Schema support?

Codec2Schema is published for Fabric only. The latest Fabric file is 0.3.7+26.3-pre-1 for 26.3, on the beta channel.

Does the server need Codec2Schema?

No. Either side can run it, and neither needs it, so a server can run without the mod.

Are the exported schemas complete?

Not always. Many edge cases cannot be accounted for, so the generated schemas should be checked against the warnings they produce.

Which game versions have files?

Files exist for 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2 and 26.3, across the 1.21.11 – 26.3 range, with snapshot builds also published.

In the catalog

Codec2Schema is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.

More from Tr100000

All projects

Similar mods

What the author says

Through the power of mixins, sheer will, and unchecked type casts, this mod transforms codecs into (mostly) usable JSON schemas. 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.
Tr100000, on the Modrinth page

Official listing

Owner
Tr100000
Published
2025-12-27
Updated on Modrinth
2026-10-07
Facts verified
2026-10-15

Tags