Skip to content

Instantly share code, notes, and snippets.

View OJASisLive's full-sized avatar
🎯
Focusing

Om J Shah OJASisLive

🎯
Focusing
  • Chennai, Tamil Nadu, India
  • 17:08 (UTC +05:30)
View GitHub Profile
@Kas-tle
Kas-tle / converter.sh
Last active December 3, 2023 11:05
Java to Bedrock 3D Model Converter 1.1
#!/usr/bin/env bash
: ${1?'Please specify an input resource pack in the same directory as the script (e.g. ./converter.sh MyResourcePack.zip)'}
# define color placeholders
C_RED='\e[31m'
C_GREEN='\e[32m'
C_YELLOW='\e[33m'
C_BLUE='\e[36m'
C_GRAY='\e[37m'
C_CLOSE='\e[m'
@Kas-tle
Kas-tle / converter.sh
Last active December 3, 2023 11:04
Java to Bedrock 3D Model Converter
#!/usr/bin/env bash
: ${1?'Please specify an input resource pack in the same directory as the script (e.g. ./converter.sh MyResourcePack.zip)'}
# ensure input pack exists
if ! test -f "${1}"; then
echo "Input resource pack ${1} is not in this directory"
echo "Please ensure you have entered the filename correctly"
exit 1
else
printf "\e[33m[•]\e[m \e[37mInput file ${1} detected\e[m\n"