Does what it says on the tin. This repo contains a script that scans a Minecraft jar file for armor trim recipes, then generates a datapack that replaces those recipes with recipes that don't include the ridiculous diamond requirement, but are otherwise identical.
A pre-generated datapack is available under releases.
Note: As far as I know, this code should work on modded armor trims as well, by simply specifying the mod jar rather than Minecraft's jar, but I haven't actually tested this myself.
./generate_pack.py <path to minecraft.jar>These are the game jar locations used by the official launcher:
Windows: %appdata%/.minecraft/versions/<version>/<version>.jar
MacOS: ~/Library/Application Support/minecraft/versions/<version>/<version>.jar
Linux: ~/.minecraft/versions/<version>/<version>.jar
All code in this repo is licensed under the MIT license. Go wild.