Material Json
by boyonk
Material Json lets a datapack define the durability, mining speed, attack damage, armor values and repair ingredient of tool and armor materials, without writing code.
What it does
Material definitions are JSON files loaded from datapacks. A datapack can change any single field, such as durability alone, and leave the others at their defaults, so a change does not require copying a whole material. Each material file sets the durability as a 32-bit integer, the mining speed and attack damage as single-precision floating-point numbers, and the mining level and enchantability as integers. Armor entries add protection per piece, armor toughness, knockback resistance and the sound played when the armor is equipped, which must be a sound event defined in sounds.json.
Changes are synced from the server to connected clients and take effect after a datapack reload, so new values appear without restarting the game. The mod also has a configuration file that lets server owners alter the materials of weapons, armor and tools. Support mods can add new weapons, armor and tools that read these material definitions, and the mod is intended to be used alongside them. Individual items can receive bonus or penalty values, for example for swords.
Key features
Datapack material definitions
Tool and armor materials are defined in JSON files, so a pack can add or change materials without a mod update.
Per-field overrides
A datapack only needs to specify the fields it changes, and the rest keep their defaults.
Live sync and reload
Changed materials are sent from the server to clients and apply after a datapack reload, with no restart needed.
Configurable materials
A configuration file lets server owners change the materials used by weapons, armor and tools.
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 1
Use cases
Balancing a modpack
A modpack author can adjust durability and damage for vanilla-style tools and armor by editing a datapack.
Custom equipment sets
A datapack maker can give new weapons and armor their own material with a repair ingredient, mining level and sound.
Who it’s for: Datapack authors, modpack makers and server owners who want to tune tool and armor materials without writing Java code. Players who only play vanilla content need nothing beyond the required library.
Questions
Does Material Json need Fabric API?
Does the mod have to be installed on the server and on clients?
Which game versions does Material Json support?
In the catalog
Material Json is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from boyonk
Similar mods
What the author says
🚨 1.20.5: Please note that due to changes in Minecraft's code, support for the latest version will take a while # Material Json Ever wanted to change the durability of all Iron Tools? What about changing the protection amounts of Diamond Armor? Or the mining speed of Netherite? Well, with Material Json you can!…
Official listing
- Modrinth page
- modrinth.com/mod/material-json
- Owner
- boyonk
- Published
- 2024-04-04
- Updated on Modrinth
- 2024-04-04
- Facts verified
- 2026-10-15
