Back to mods
JsonPatcher project artwork

CurseForge · Minecraft mod

JsonPatcher

A tool for patching minecrafts json files, without overrding them, using a custom DSL

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

Quick answer

Which JsonPatcher release should I use?

Updated today
Latest stable file v1.1.1 [1.21.4]
Game version 1.21.4
Loader Fabric, Quilt

JsonPatcher v1.1.1 [1.21.4] targets 1.21.4 with Fabric, Quilt. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is JsonPatcher required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

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

The source does not explicitly classify this release as client-only or server-only.

What else does JsonPatcher v1.1.1 [1.21.4] need?

v1.1.1 [1.21.4]. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by JsonPatcher v1.1.1 [1.21.4]
required
Matching file found Matched file: [1.21.4] Fabric API 0.119.4+1.21.4

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add JsonPatcher without breaking your instance.

Built for JsonPatcher v1.1.1 [1.21.4]. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use v1.1.1 [1.21.4]. It targets 1.21.4 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside v1.1.1 [1.21.4]. It opens that exact file at the source.

About this project

What does JsonPatcher add?

JsonPatcher

Badge showing the amount of downloads on modrinth Badge showing the amount of downloads on curseforge Badge linking to issues on github Badge linking to support on discord

JsonPatcher is a mod that allows you to modify json files in datapacks and resourcepacks without overriding them. This is primarily useful for mod developers and pack makers, but can also be used by players to modify their own packs.

V2 Disclaimer

JsonPatcher v2 is currently in beta. V2 introduces a bunch of new features including global patches for mods and modpacks. There's currently no documentation available for v2 as it had to be rushed out for BlanketCon '25. Parts of the v1 docs may be correct, but expect things not to work perfectly.

Usage

<details> <summary>Gradle dependency (for mod developers)</summary>

You can add jsonpatcher to your mods buildscript like this:

repositories {
    maven {
        url 'https://jitpack.io'
    }
}

dependencies {
    modImplementation(include("com.github.mattidragon:jsonpatcher:${jsonpatcher_version}"))
}

</details>

To begin using jsonpatcher, just create a file with the .jsonpatch extension in the data/<namespace>/jsonpatch directory of your datapack or assets/<namespace>/jsonpatch directory of your resourcepack.

You'll want to begin your patch with a @version meta tag like this. This will let jsonpatcher know that your patch will work with this version. In the future you may be able to select a version in more ways.

@version "1"

Next you'll want to select the files you want to patch. This is done with the @target meta tag. All meta tags follow a json format. You can either select a single file with a string, use an object for broader selections, or use an array for multiple selections. If any selector in the array matches, the patch will apply.

Now you can begin modifying the target file. The patch files use a c-like syntax. You can access the target files contents with $. It can be used like a variable, or you can put the property you want to access directly after it.

For more info on the language, see the wiki.

Project description from CurseForge.

Pick your setup

JsonPatcher by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

19 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

JsonPatcher versions and loaders

20 of 20 releases match

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