mirror of
https://github.com/Kas-tle/java2bedrock.sh.git
synced 2025-12-20 07:09:17 +00:00
Update converter.sh
This commit is contained in:
@@ -948,10 +948,6 @@ if test -f ${merge_input}; then
|
|||||||
status_message completion "Input bedrock pack merged with generated assets\n"
|
status_message completion "Input bedrock pack merged with generated assets\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# cleanup
|
|
||||||
status_message critical "Deleting scratch files"
|
|
||||||
rm -rf spritesheet && rm -rf assets && rm -f pack.mcmeta && rm -f pack.png && rm -f parents.json && rm -f all.csv && rm -f pa.csv && rm -f *.temp && rm -f item_mappings.json && rm -f item_texture.json
|
|
||||||
|
|
||||||
#status_message critical "Deleting unused entries from config"
|
#status_message critical "Deleting unused entries from config"
|
||||||
# jq 'map_values(del(.path, .element_parent, .parent, .geyserID))' config.json | sponge config.json
|
# jq 'map_values(del(.path, .element_parent, .parent, .geyserID))' config.json | sponge config.json
|
||||||
status_message process "Creating Geyser mappings in target directory"
|
status_message process "Creating Geyser mappings in target directory"
|
||||||
@@ -1027,6 +1023,10 @@ if [ -f sprites.json ]; then
|
|||||||
' ./target/geyser_mappings.json sprites.json | sponge ./target/geyser_mappings.json
|
' ./target/geyser_mappings.json sprites.json | sponge ./target/geyser_mappings.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
status_message critical "Deleting scratch files"
|
||||||
|
rm -rf spritesheet && rm -rf assets && rm -f pack.mcmeta && rm -f sprites.json && rm -f pack.png && rm -f parents.json && rm -f all.csv && rm -f pa.csv && rm -f *.temp && rm -f item_mappings.json && rm -f item_texture.json
|
||||||
|
|
||||||
status_message process "Compressing output packs"
|
status_message process "Compressing output packs"
|
||||||
mkdir ./target/packaged
|
mkdir ./target/packaged
|
||||||
cd ./target/rp > /dev/null && zip -rq8 geyser_resources_preview.mcpack . -x "*/.*" && cd ../.. > /dev/null && mv ./target/rp/geyser_resources_preview.mcpack ./target/packaged/geyser_resources_preview.mcpack
|
cd ./target/rp > /dev/null && zip -rq8 geyser_resources_preview.mcpack . -x "*/.*" && cd ../.. > /dev/null && mv ./target/rp/geyser_resources_preview.mcpack ./target/packaged/geyser_resources_preview.mcpack
|
||||||
|
|||||||
Reference in New Issue
Block a user