Add resource sources

This commit is contained in:
sqozz 2021-03-23 15:25:00 +01:00
parent 5e34263288
commit dd556115aa
4 changed files with 28 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.png
*.ttf

View File

@ -0,0 +1 @@
Download https://www.dafont.com/de/minecraft.font and place it in here

View File

@ -0,0 +1,2 @@
To not offend any copyright I have not included the needed resources into this repo. If you have minecraft installed on your PC you can simply use the `extract_resources.sh` script to grab the needed PNGs. It will choose the newest installation, extract the default resource pack and copy them in the folder you're running the script from.
Make sure to follow the instructions printed on screen.

View File

@ -0,0 +1,23 @@
#!/bin/bash
RESOURCE_LOCATION=`ls -d ~/.minecraft/versions/1.* | tail -n 1`
RESOURCE_PACK=`ls $RESOURCE_LOCATION/*.jar`
echo "Resource pack located: $RESOURCE_PACK"
TMP_PATH=`mktemp -d`
echo -n "Copying and extracting resource pack… "
cp $RESOURCE_PACK $TMP_PATH
pushd $TMP_PATH > /dev/null
unzip *.jar > /dev/null
echo "done!"
echo "Unzipped resources at $TMP_PATH"
popd
FILES="birch_sign.png map.png redstone_lamp_on.png redstone_lamp.png writable_book.png"
for FILE in $FILES; do
echo -n "Grabbing asset from: "
find $TMP_PATH -name $FILE -print -exec cp {} . \;
done
echo "Done grabbing resources!"
echo ""
echo "You can now copy the background blocks you wish to have from $TMP_PATH/assets/minecraft/textures/block/ into the background folder."
echo "Afterwards make sure to delete $TMP_PATH again to save disk space!"