From 2b213c9e26e6b8d1145c90b8ddfdf93b08941304 Mon Sep 17 00:00:00 2001 From: Kas-tle <26531652+Kas-tle@users.noreply.github.com> Date: Sun, 8 May 2022 04:31:15 -0700 Subject: [PATCH] Update converter.sh --- converter.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/converter.sh b/converter.sh index d23a6f8..69af2cc 100644 --- a/converter.sh +++ b/converter.sh @@ -934,7 +934,7 @@ rm -rf assets && rm -f pack.mcmeta && rm -f pack.png && rm -f parents.json && rm status_message process "Creating Geyser mappings in target directory" echo jq ' -to_entries | map( +([to_entries | map( { ("minecraft:" + .value.item): [ { @@ -949,7 +949,11 @@ to_entries | map( ) | map(to_entries[]) | group_by(.key)[] -| {(.[0].key) : map(.value) | add} +| {(.[0].key) : map(.value) | add}] | add) as $mappings +| { + "format_version": "1.0.0", + "items": $mappings + } ' config.json | sponge ./target/geyser_mappings.json status_message process "Compressing output packs"