CurseForge · Minecraft mod
JsonPatcher
A tool for patching minecrafts json files, without overrding them, using a custom DSL
Quick answer
Which JsonPatcher release matches 1.20.3-pre2?
JsonPatcher v1.0.0-beta.3 [1.20.2] targets 1.20.2, 1.20.3-Snapshot, 1.20.3-pre2 with Fabric, Quilt. The project page does not say whether this file belongs on the client, dedicated server, or both. 1 required mod needs a matching file.
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.
The source does not explicitly classify this release as client-only or server-only.
What else does JsonPatcher v1.0.0-beta.3 [1.20.2] need?
v1.0.0-beta.3 [1.20.2] on 1.20.3-pre2. Every mod below is checked against that same setup.
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
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.0.0-beta.3 [1.20.2] on 1.20.3-pre2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use v1.0.0-beta.3 [1.20.2]. It targets 1.20.2, 1.20.3-Snapshot, 1.20.3-pre2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside v1.0.0-beta.3 [1.20.2]. It opens that exact file at the source.
About this project
What does JsonPatcher add?
JsonPatcher
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.
26.3
1 loader build1.21.4
2 loader builds1.21.1
2 loader builds1.21
2 loader builds1.20.6
2 loader builds1.20.4
2 loader builds1.20.3-Snapshot
2 loader builds1.20.3-pre2
2 loader builds1.20.2
2 loader builds1.20.1
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
JsonPatcher versions and loaders
v1.0.0-beta.3 [1.20.2]
JsonPatcher-1.0.0-beta.3+mc.1.20.2.jar
25 Nov 2023
Looking for an older file? The official CurseForge project page is in Resources.