JsonWrangler

⭐ — (6 endorsements) 📥 1,445 downloads 📌 v0.1.3 📅 3/30/2023
⚪ Last updated 2023

By lukebemish · forge

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 7/30/2023 📅 Created: 3/30/2023
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.4% endorsement rate
  • 🏆 #114 of 362 forge mods in this game by downloads

📋 About This Mod

# JsonWrangler *A tool for all your JSON-modifying needs* Quilt version requires: (https://modrinth.com/mod/qsl) and (https://modrinth.com/mod/groovyduvet) Forge version requires: (https://modrinth.com/mod/gml) 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. ## Usage JsonWrangler should allow modification of basically any JSON file with a "winner takes all" behavior - for instance, loot tables, models, worldgen data, or animation metadata files. If JsonWrangler fails to wrangle a file that you think it should, please submit a bug report. If you wish to modify a file at a given path, say, `assets/minecraft/textures/block/magma.png.mcmeta` or `data/minecraft/loot_tables/chests/simple_dungeon.json`, you should create a groovy script at same path, but with a `.groovy` at the end - in this case, `assets/minecraft/textures/block/magma.png.mcmeta.groovy` or `data/minecraft/loot_tables/chests/simple_dungeon.json.groovy`. Inside of your groovy script, you are given several arguments, and must return a value which will replace the original JSON file. Valid values to return include maps, where map keys must be strings and values may be lists, maps, numbers, booleans, strings, or dates. In addition to normal groovy features, You have the following variables at your disposal inside your script: * `json` - the original JSON file, parsed into a map * `platform` - either `"quilt"` or `"forge"`, depending on which platform you are running on * `override` - a method which, if called, will cause any further scripts attempting to modify the same file to not run Multiple scripts in different datapacks or resource packs can target the same file - they are ran in order from highest priority (the "top" pack) to lowest priority (the "bottom" pack). If a script calls `override()`, no further scripts will run. ## Servers **Note:** As the groovy scripts that JsonWrangler loads can execute arbitrary code, JsonWrangler will not load scripts from server resource packs. If you wish to load scripts from a server resource pack, you will have to copy it as a local resource pack first. ## Examples ### Changing the texture of an item Placing the following file at `assets/minecraft/models/item/apple.json.groovy` will change the texture of the apple to use the potato texture: ```groovy json?.textures?.layer0 = 'minecraft:item/potato' return json ```

# JsonWrangler

A tool for all your JSON-modifying needs

Quilt version requires: (https://modrinth.com/mod/qsl) and (https://modrinth.com/mod/groovyduvet)

Forge version requires: (https://modrinth.com/mod/gml)

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.

JsonWrangler should allow modification of basically any JSON file with a "winner takes all" behavior - for instance, loot tables, models, worldgen data, or animation metadata files. If JsonWrangler fails to wrangle a file that you think it should, please submit a bug report. If you wish to modify a file at a given path, say, `assets/minecraft/textures/block/magma.png.mcmeta` or `data/minecraft/loot_tables/chests/simple_dungeon.json`, you should create a groovy script at same path, but with a `.groovy` at the end - in this case, `assets/minecraft/textures/block/magma.png.mcmeta.groovy` or `data/minecraft/loot_tables/chests/simple_dungeon.json.groovy`. Inside of your groovy script, you are given several arguments, and must return a value which will replace the original JSON file. Valid values to return include maps, where map keys must be strings and values may be lists, maps, numbers, booleans, strings, or dates. In addition to normal groovy features, You have the following variables at your disposal inside your script:

`json` - the original JSON file, parsed into a map `platform` - either `"quilt"` or `"forge"`, depending on which platform you are running on * `override` - a method which, if called, will cause any further scripts attempting to modify the same file to not run

Multiple scripts in different datapacks or resource packs can target the same file - they are ran in order from highest priority (the "top" pack) to lowest priority (the "bottom" pack). If a script calls `override()`, no further scripts will run.

Note: As the groovy scripts that JsonWrangler loads can execute arbitrary code, JsonWrangler will not load scripts from server resource packs. If you wish to load scripts from a server resource pack, you will have to copy it as a local resource pack first.

## Examples

### Changing the texture of an item Placing the following file at `assets/minecraft/models/item/apple.json.groovy` will change the texture of the apple to use the potato texture: ```groovy json?.textures?.layer0 = 'minecraft:item/potato'

return json ```

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
lukebemish
Version
0.1.3
Downloads
1,445
Endorsements
6
Category
forge
Created
3/30/2023
Updated
7/30/2023
Game Versions
1.19.4
Tags
library, management, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does JsonWrangler support?

The author lists 1.19.4. Other versions may work but are untested by the author.

What is the latest version of JsonWrangler?

Version 0.1.3, published 2023-07-30 with 1,445 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More forge 👤 More by lukebemish 🔎 Similar Mods 🌐 Best forge (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods