JsonWrangler
by lukebemish
With JsonWrangler, scripts written in Groovy can change the JSON files that hold game data and resources.
What it does
JsonWrangler parses each original JSON file into a map that Groovy scripts can read and edit before the game loads it. Scripts are packaged inside resource data packs and resource packs, and JsonWrangler loads them and runs them on the server or the client. Because the scripts run arbitrary code, they can change almost any value that a JSON resource holds.
When several scripts from different datapacks or resource packs target the same file, they run in order: the pack with the highest priority at the top runs first, and the pack with the lowest priority at the bottom runs last. A script can call a method that overrides the changes made by later scripts, so the author of an earlier script controls the outcome. Players may also prefer scripts taken from a server pack, after copying a local pack first.
The mod needs GroovyDuvet, and it also needs either Quilted Fabric API (QFAPI) or Quilt Standard Libraries (QSL). Files are published for Forge and Quilt across the 1.19.4 and 1.20.1 game versions, with 0.1.3 as the latest file for 1.19.4. Either side can run it, and neither needs it, and the mod is open source under the GNU Lesser General Public License v3.0 or later.
Key features
Map view of JSON files
Each original JSON file is parsed into a map, so scripts edit named keys and values instead of raw text.
Groovy scripts in packs
Scripts ship inside datapacks and resource packs, and JsonWrangler loads and executes them at startup.
Priority-ordered execution
Scripts targeting the same file run from the highest-priority pack down to the lowest, so the order is predictable.
Override control
A script can call a method that stops further scripts from modifying the same file in that pass.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 2
Required by 1 mod
Questions
Does JsonWrangler need GroovyDuvet?
Which library does JsonWrangler need on Quilt?
Does a server need JsonWrangler installed?
In the catalog
JsonWrangler is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 34,764 mods support Minecraft 1.20.1.
More from lukebemish
Similar mods
What the author says
JsonWrangler is a Minecraft mod which allows for the modification of game data and resources, as stored in JSON files, through groovy scripts which can be packaged in resource or data packs. Multiple scripts in different datapacks or resource packs can target the same file - they are ran in order from highest…
Official listing
- Modrinth page
- modrinth.com/mod/jsonwrangler
- Owner
- lukebemish
- Published
- 2023-03-30
- Updated on Modrinth
- 2023-07-30
- Facts verified
- 2026-10-15
