Back to mods

Modrinth · Minecraft mod

Codec2Schema

A tool to convert codecs to JSON schemas.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Codec2Schema release matches 26w14a?

Updated 14 days ago
Best match for your filters 0.3.6+26.1.2
Game version 26.1, 26.1.1, 26w14a
Loader Fabric

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.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

No extra mods listed for this file

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 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.

48 available setups

Showing 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

5 of 42 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.