This Gist contains a JQ filter to fix the broken armour JSON exports from the BlockBench GeckoLib plugin in two different formats, but using the exact same solution.
This solution was created using Ubuntu, but you can adapt it to be used for others assuming you can install jq
.
See the jq
docs for more info and how to install: https://jqlang.github.io/jq/
Use either one of the below options:
Use the single_command.sh
to execute the jq
command directly in your (Linux) CLI.
This assumes the input (broken) file is named broken_armor.geo.json
, and the output will be a file named armor.geo.json
.
Create a file and put the contents of jqFilter
into it.
Then execute echo $(<broken_armor.geo.json) | jq -f jqFilter > armor.geo.json
. Replace file names as appropriate.