mirror of
https://github.com/Astatin3/meteorbot-old.git
synced 2026-06-09 00:28:06 -06:00
17 lines
907 B
Plaintext
17 lines
907 B
Plaintext
if exist Assets\${BOTCRAFT_GAME_VERSION}\minecraft\ (
|
|
echo Minecraft ${BOTCRAFT_GAME_VERSION} assets already downloaded
|
|
) else (
|
|
echo Downloading Minecraft ${BOTCRAFT_GAME_VERSION} assets...
|
|
mkdir Assets\${BOTCRAFT_GAME_VERSION}\minecraft\
|
|
mkdir tmp
|
|
Rem Download ${BOTCRAFT_GAME_VERSION} client file
|
|
curl.exe --output tmp\client.jar --url ${VERSION_CLIENT_URL}
|
|
Rem Extract the following folders from the jar file: assets/minecraft/blockstates assets/minecraft/models/block assets/minecraft/textures/block assets/minecraft/textures/entity
|
|
tar.exe -x -f tmp\client.jar -C tmp assets/minecraft/blockstates assets/minecraft/models/block assets/minecraft/textures/block assets/minecraft/textures/entity
|
|
Rem copy the folders to correct destination
|
|
xcopy /s tmp\assets\minecraft\ Assets\${BOTCRAFT_GAME_VERSION}\minecraft\
|
|
Rem clean
|
|
rmdir /s /q tmp
|
|
echo Done!
|
|
)
|