2022-09-13 23:50:19 +03:00
|
|
|
@echo off
|
2018-06-12 11:19:26 +03:00
|
|
|
title Minecraft Launcher
|
|
|
|
|
2022-09-13 23:50:19 +03:00
|
|
|
echo Minecraft Launcher by iiiypuk
|
|
|
|
echo =============================
|
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Set username
|
2022-06-27 16:50:39 +03:00
|
|
|
set /p PLAYER=What username would you like?
|
2022-09-13 23:54:54 +03:00
|
|
|
IF [%PLAYER%] == [] set PLAYER=Steve
|
2020-02-01 02:59:58 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: A minecraft root directory
|
2018-06-12 11:19:26 +03:00
|
|
|
set MC_DIR=%APPDATA%\.minecraft
|
|
|
|
|
|
|
|
:: Are stored here...
|
|
|
|
:: saves/, resourcepacks/ and screenshots/ dirs
|
|
|
|
:: and options.txt and servers.dat files
|
2024-03-31 18:05:19 +03:00
|
|
|
set GAME_DIR=%MC_DIR%\userdata
|
2018-06-12 11:19:26 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Libraries and resource dir (requires no changes)
|
2018-06-12 11:19:26 +03:00
|
|
|
set ASSETS_DIR=%MC_DIR%\assets
|
2024-03-31 18:05:19 +03:00
|
|
|
set ASSETS_INDEX=12
|
2018-06-12 11:19:26 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Version minecraft (from versions/ dir)
|
|
|
|
set GAME_VERSION=1.20.4
|
|
|
|
|
|
|
|
:: Get archive from natives/ dir
|
|
|
|
NATIVES_DIR=%MC_DIR%\bin\%GAME_VERSION%
|
2018-06-12 11:19:26 +03:00
|
|
|
|
2022-06-03 15:43:03 +03:00
|
|
|
:: *.jar paths from version.json
|
2022-09-13 23:06:43 +03:00
|
|
|
set LIBRARIES_LIST=^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar;^
|
|
|
|
%MC_DIR%/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar;^
|
2023-07-13 02:42:22 +03:00
|
|
|
%MC_DIR%/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar;^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar;^
|
|
|
|
%MC_DIR%/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar;^
|
|
|
|
%MC_DIR%/libraries/com/mojang/authlib/6.0.52/authlib-6.0.52.jar;^
|
2023-07-13 02:42:22 +03:00
|
|
|
%MC_DIR%/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar;^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/com/mojang/brigadier/1.2.9/brigadier-1.2.9.jar;^
|
2023-07-13 02:42:22 +03:00
|
|
|
%MC_DIR%/libraries/com/mojang/datafixerupper/6.0.8/datafixerupper-6.0.8.jar;^
|
|
|
|
%MC_DIR%/libraries/com/mojang/logging/1.1.1/logging-1.1.1.jar;^
|
|
|
|
%MC_DIR%/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar;^
|
|
|
|
%MC_DIR%/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar;^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar;^
|
|
|
|
%MC_DIR%/libraries/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar;^
|
2023-07-13 02:42:22 +03:00
|
|
|
%MC_DIR%/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar;^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar;^
|
|
|
|
%MC_DIR%/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar;^
|
|
|
|
%MC_DIR%/libraries/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar;^
|
|
|
|
%MC_DIR%/libraries/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar;^
|
2023-03-22 10:10:58 +03:00
|
|
|
%MC_DIR%/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar;^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/org/apache/commons/commons-compress/1.22/commons-compress-1.22.jar;^
|
|
|
|
%MC_DIR%/libraries/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar;^
|
2022-09-13 23:02:07 +03:00
|
|
|
%MC_DIR%/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar;^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar;^
|
2023-03-22 10:10:58 +03:00
|
|
|
%MC_DIR%/libraries/org/apache/logging/log4j/log4j-api/2.19.0/log4j-api-2.19.0.jar;^
|
|
|
|
%MC_DIR%/libraries/org/apache/logging/log4j/log4j-core/2.19.0/log4j-core-2.19.0.jar;^
|
2023-07-13 02:42:22 +03:00
|
|
|
%MC_DIR%/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.19.0/log4j-slf4j2-impl-2.19.0.jar;^
|
|
|
|
%MC_DIR%/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar;^
|
2024-03-31 18:05:19 +03:00
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-glfw/3.3.2/lwjgl-glfw-3.3.2.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-glfw/3.3.2/lwjgl-glfw-3.3.2-natives-windows.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-glfw/3.3.2/lwjgl-glfw-3.3.2-natives-windows-arm64.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-glfw/3.3.2/lwjgl-glfw-3.3.2-natives-windows-x86.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-jemalloc/3.3.2/lwjgl-jemalloc-3.3.2.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-jemalloc/3.3.2/lwjgl-jemalloc-3.3.2-natives-windows.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-jemalloc/3.3.2/lwjgl-jemalloc-3.3.2-natives-windows-arm64.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-jemalloc/3.3.2/lwjgl-jemalloc-3.3.2-natives-windows-x86.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-openal/3.3.2/lwjgl-openal-3.3.2.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-openal/3.3.2/lwjgl-openal-3.3.2-natives-windows.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-openal/3.3.2/lwjgl-openal-3.3.2-natives-windows-arm64.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-openal/3.3.2/lwjgl-openal-3.3.2-natives-windows-x86.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-opengl/3.3.2/lwjgl-opengl-3.3.2.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-opengl/3.3.2/lwjgl-opengl-3.3.2-natives-windows.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-opengl/3.3.2/lwjgl-opengl-3.3.2-natives-windows-arm64.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-opengl/3.3.2/lwjgl-opengl-3.3.2-natives-windows-x86.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-stb/3.3.2/lwjgl-stb-3.3.2.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-stb/3.3.2/lwjgl-stb-3.3.2-natives-windows.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-stb/3.3.2/lwjgl-stb-3.3.2-natives-windows-arm64.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-stb/3.3.2/lwjgl-stb-3.3.2-natives-windows-x86.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-tinyfd/3.3.2/lwjgl-tinyfd-3.3.2.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-tinyfd/3.3.2/lwjgl-tinyfd-3.3.2-natives-windows.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-tinyfd/3.3.2/lwjgl-tinyfd-3.3.2-natives-windows-arm64.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl-tinyfd/3.3.2/lwjgl-tinyfd-3.3.2-natives-windows-x86.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl/3.3.2/lwjgl-3.3.2.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl/3.3.2/lwjgl-3.3.2-natives-windows.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl/3.3.2/lwjgl-3.3.2-natives-windows-arm64.jar;^
|
|
|
|
%MC_DIR%/libraries/org/lwjgl/lwjgl/3.3.2/lwjgl-3.3.2-natives-windows-x86.jar;^
|
|
|
|
%MC_DIR%/libraries/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar;^
|
2022-09-13 23:02:07 +03:00
|
|
|
%MC_DIR%/versions/%GAME_VERSION%/%GAME_VERSION%.jar
|
2021-02-10 22:48:03 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Player nickname (the over head)
|
2022-06-27 16:50:39 +03:00
|
|
|
set PLAYER_NAME=%PLAYER%
|
2020-05-07 21:57:15 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Game window resolution
|
2020-05-07 21:57:15 +03:00
|
|
|
set WINDOW_W=800
|
|
|
|
set WINDOW_H=640
|
2018-06-12 11:19:26 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Java machine arguments
|
2023-03-22 12:25:06 +03:00
|
|
|
set JVM_RAM=-Xmx2G
|
|
|
|
set JVM_ARGS=-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
|
2018-06-12 11:19:26 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Change directory
|
2021-11-04 21:55:27 +03:00
|
|
|
cd /d %MC_DIR%
|
2018-06-12 11:19:26 +03:00
|
|
|
|
2024-03-31 18:05:19 +03:00
|
|
|
:: Prepare game directory
|
|
|
|
mkdir %GAME_DIR%
|
|
|
|
|
|
|
|
:: Running minecraft
|
2020-05-08 19:26:57 +03:00
|
|
|
java.exe %JVM_RAM% %JVM_ARGS% ^
|
2021-02-10 22:48:03 +03:00
|
|
|
-cp %LIBRARIES_LIST% ^
|
2020-05-07 23:16:49 +03:00
|
|
|
net.minecraft.client.main.Main ^
|
|
|
|
--username %PLAYER_NAME% ^
|
|
|
|
--version %GAME_VERSION% ^
|
|
|
|
--accessToken 0 --userProperties {} ^
|
|
|
|
--gameDir %GAME_DIR% ^
|
|
|
|
--assetsDir %ASSETS_DIR% ^
|
|
|
|
--assetIndex %ASSETS_INDEX% ^
|
|
|
|
--width %WINDOW_W% ^
|
|
|
|
--height %WINDOW_H%
|