Codec2Schema

⭐ — (4 endorsements) 📥 1,093 downloads 📌 v0.3.7+1.21.11 📅 1/10/2026
🟡 Updated this year

By Tr100000 · cursed

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 8/18/2026 📅 Created: 1/10/2026
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.4% endorsement rate
  • 🏆 #87 of 190 cursed mods in this game by downloads

📋 About This Mod

# 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. <details> <summary>Example</summary> The following is the generated JSON schema for (https://minecraft.wiki/w/Resource_pack#Regional_compliancies_warnings): ```json { "$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": } } } ``` It's not perfect, but it's good enough. </details>

# 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 `/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 (https://minecraft.wiki/w/Resource_pack#Regional_compliancies_warnings): ```json { "$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.

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
Tr100000
Version
0.3.7+1.21.11
Downloads
1,093
Endorsements
4
Category
cursed
Created
1/10/2026
Updated
8/18/2026
Game Versions
1.21.11
Tags
cursed, library, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does Codec2Schema support?

The author lists 1.21.11. Other versions may work but are untested by the author.

What is the latest version of Codec2Schema?

Version 0.3.7+1.21.11, published 2026-08-18 with 1,093 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More cursed 👤 More by Tr100000 🔎 Similar Mods 🌐 Best cursed (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods