Mineuniverse
Log in Register
Mods

JsonPatcher

A tool for patching minecrafts json files, without overrding them, using a custom DSL
by MattiDragon
Download Claim this project
1,222 downloads
0 likes
Updated Jun 30, 2026
0 hypes

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.

v2.0.0-beta.7 [1.21.1]
MC Fabric, 1.21.1, Quilt
Beta 2025-09-24 Get
v2.0.0-beta.5 [1.21.1]
MC Fabric, 1.21.1, Quilt
Beta 2025-08-24 Get
v2.0.0-beta.6 [1.21.1]
MC Fabric, 1.21.1, Quilt
Beta 2025-08-24 Get
v2.0.0-beta.4 [1.21.1]
MC Fabric, 1.21.1, Quilt
Beta 2025-03-28 Get
v2.0.0-beta.3 [1.21.1]
MC Fabric, 1.21.1, Quilt
Beta 2025-03-24 Get
v2.0.0-beta.2 [1.21.1]
MC Fabric, 1.21.1, Quilt
Beta 2025-03-15 Get
v2.0.0-beta.1 [1.21.1]
MC Fabric, 1.21.1, Quilt
Beta 2025-03-14 Get
v1.1.1 [1.21.4]
MC Fabric, 1.21.4, Quilt
Release 2025-01-31 Get
v1.1.1 [1.21.1]
MC Fabric, 1.21.1, Quilt
Release 2024-10-31 Get
v1.1.0 [1.21.1]
MC Fabric, 1.21.1, Quilt
Release 2024-08-10 Get
v1.1.0 [1.21]
MC 1.21, Fabric, Quilt
Release 2024-06-28 Get
v1.0.0 [1.20.6]
MC Fabric, 1.20.6, Quilt
Release 2024-05-12 Get

More from MattiDragon

Gadgets of the Sky
851
Extended Drawers: Extensions
627
Advanced Networking
5,826
Power Networks
4,857
PolydexBridge
4,761
Custom Default World Preset
47,289

You Might Also Like

Liberty's Villagers
Quality of Life and AI improvements for Villagers
9,968,428
No More Pop-ups
A Minecraft mod to remove in-game pop-ups
996,708
BetterRandomSourceConcurrencyCrash
Improved logging of crashes caused by mods accessing RandomSources from the wrong thread
99,371
Exit Confirmation
Often accidentally closed Minecraft? This mod might help!
99,067
NoDynamicFps
Adds an option to disable Vanilla's Dynamic FPS implementation
99,004
Immersive Crafting
Adds crafting recipes to immersive portals
9,998