Add resource sources
This commit is contained in:
parent
5e34263288
commit
dd556115aa
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.png
|
||||
*.ttf
|
1
homepage/static/fonts/README.md
Normal file
1
homepage/static/fonts/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
Download https://www.dafont.com/de/minecraft.font and place it in here
|
2
homepage/static/img/README.md
Normal file
2
homepage/static/img/README.md
Normal 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.
|
23
homepage/static/img/extract_resources.sh
Executable file
23
homepage/static/img/extract_resources.sh
Executable 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!"
|
Loading…
Reference in a new issue