Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Changes to Beta #120

Merged
merged 12 commits into from
Dec 25, 2024
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,3 @@ This project is licensed under the [GPLv3](https://www.gnu.org/licenses/gpl-3.0.
#### Compiling

The build script uses the [PackMake](https://github.com/iJustLeyxo/PackMake/) resource pack compiler, which is automatically downloaded and used to interpret the source file structure.


#### Compressing

The compress script uses the [OptiPNG](https://optipng.sourceforge.net/) png file optimizer, which is required to compress the source files. Compilation does not require the compress script or OptiPNG.
73 changes: 28 additions & 45 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,35 @@

rm -rf PackMake.jar PackMake.zip PackMake/ target/

PM_VER="0.0.2"
# Newest PM_VER=$(echo $(curl -s https://api.github.com/repos/iJustLeyxo/PackMake/releases/latest) | jq -r '.tag_name')
PM_URL="https://github.com/iJustLeyxo/PackMake/archive/refs/tags/$PM_VER.zip"
PM_VER="0.0.5"

if [ -z "$PM_URL" ]; then
echo "Faulty download url"
exit 1
fi

echo "Downloading resourcepack compiler from $PM_URL"
curl -sLo "PackMake.zip" $PM_URL

echo "Extracting resourcepack compiler"
unzip -q PackMake.zip
rm -f PackMake.zip

PM_DIR="PackMake-$PM_VER/"
cd "$PM_DIR"

echo "Compiling resourcepack compiler"
mvn -q clean package
cd ..
cp "$PM_DIR/target/PackMake.jar" "PackMake.jar"
rm -rf "$PM_DIR"
if [ ! -e "PackMake-${PM_VER}.jar" ]; then # Download PackMake if not exists
# Newest PM_VER=$(echo $(curl -s https://api.github.com/repos/iJustLeyxo/PackMake/releases/latest) | jq -r '.tag_name')
PM_URL="https://github.com/iJustLeyxo/PackMake/archive/refs/tags/$PM_VER.zip"

if [ -z "$PM_URL" ]; then
echo "Faulty download url"
exit 1
fi

echo "Downloading resourcepack compiler from $PM_URL"
curl -sLo "PackMake-${PM_VER}.zip" $PM_URL

echo "Extracting resourcepack compiler"
unzip -q "PackMake-${PM_VER}.zip"
rm -f "PackMake-${PM_VER}.zip"

PM_DIR="PackMake-$PM_VER/"
cd "$PM_DIR"

echo "Compiling resourcepack compiler"
mvn -q clean package
cd ..
rm -f *.jar
cp "$PM_DIR/target/PackMake.jar" "PackMake-${PM_VER}.jar"
rm -rf "$PM_DIR"
fi

echo "Compiling resourcepack"
java -jar PackMake.jar
rm -f PackMake.jar

# Resourcepack packaging

cd target/

for item in *; do
if [ -d "$item" ]; then
if [ "$item" != "." ] && [ "$item" != ".." ]; then
dir="${item}/"
file="Vanitas-${1}-${item}.zip"
echo "Packaging ${file}"
cp "../LICENSE" "$dir"
cp "../README.md" "$dir"
cd "$dir"
zip -rq0 "$file" *
cp "$file" "../$file"
cd ..
rm -rf "$dir"
fi
fi
done
java -jar "PackMake-${PM_VER}.jar"
4 changes: 0 additions & 4 deletions compress.sh

This file was deleted.

Binary file modified pics/hud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pics/inventory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pics/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion pm.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: "Vanitas"
formats: [ 1, 3, 5, 15, 18, 22, 32, 34, 42, 46 ]
extensions: [ ".png", ".mcmeta" ]
include: [ "LICENSE", "README.md" ]
extensions: [ ".png", ".mcmeta", ".json" ]
Binary file modified src/assets/appleskin/textures/icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/accessibility#5-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/advancements#3+/tabs#15-.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/advancements#3+/widgets#15-.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/advancements#3+/window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/bars#3-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/book.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/chat_tags#15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/checkbox#5-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/checkmark#15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/minecraft/textures/gui/container#34-/anvil.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/beacon.png
Diff not rendered.
Binary file modified src/assets/minecraft/textures/gui/container#34-/brewing_stand#1.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/bundle#15.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/crafter#22+.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/crafting_table.png
Diff not rendered.
Binary file modified src/assets/minecraft/textures/gui/container#34-/dispenser.png
Diff not rendered.
Binary file modified src/assets/minecraft/textures/gui/container#34-/generic_54.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/grindstone#5+.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/hopper.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/horse.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/inventory#5+.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/loom#5+.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/shulker_box#3+.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/smithing#15+.png
Diff not rendered.
Binary file modified src/assets/minecraft/textures/gui/container#34-/stats_icons#15-.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/stonecutter#5+.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/villager#18+.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/villager#3-.png
Binary file modified src/assets/minecraft/textures/gui/container#34-/villager2#5-15.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/anvil.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/beacon.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/blast_furnace.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/brewing_stand.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/crafter.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/crafting_table.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/dispenser.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/furnace.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/generic_54.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/grindstone.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/hopper.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/horse.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/inventory.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/loom.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/shulker_box.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/smithing.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/smoker.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/stonecutter.png
Binary file modified src/assets/minecraft/textures/gui/container#42+/villager.png
Binary file modified src/assets/minecraft/textures/gui/demo_background.png
Binary file modified src/assets/minecraft/textures/gui/footer_separator#15+.png
Binary file modified src/assets/minecraft/textures/gui/header_separator#15+.png
Binary file modified src/assets/minecraft/textures/gui/icons#15-.png
Binary file modified src/assets/minecraft/textures/gui/info_icon#15.png
Binary file modified src/assets/minecraft/textures/gui/menu_background#34+.png
Binary file modified src/assets/minecraft/textures/gui/menu_list_background#34+.png
Binary file modified src/assets/minecraft/textures/gui/options_background#32-.png
Binary file modified src/assets/minecraft/textures/gui/recipe_book#3-34.png
Binary file modified src/assets/minecraft/textures/gui/recipe_book#42+.png
Binary file modified src/assets/minecraft/textures/gui/recipe_button#5-15.png
Binary file modified src/assets/minecraft/textures/gui/report_button#15.png
Binary file modified src/assets/minecraft/textures/gui/resource_packs#3-15.png
Binary file modified src/assets/minecraft/textures/gui/server_selection#3-15.png
Binary file modified src/assets/minecraft/textures/gui/slider#15.png
Binary file modified src/assets/minecraft/textures/gui/social_interactions#15.png
Binary file modified src/assets/minecraft/textures/gui/spectator_widgets#3-15.png
Binary file modified src/assets/minecraft/textures/gui/sprites#18+/container/slot.png
Loading