Compare commits
No commits in common. "93924d50bae7b2d49b48b6554774054974fc1887" and "4df1b53fc47229d4caac0028cde409eca03acf8a" have entirely different histories.
93924d50ba
...
4df1b53fc4
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
||||
[submodule "deps/colors.sh"]
|
||||
path = deps/colors.sh
|
||||
url = https://git.a2s.su/iiiypuk/colors.sh.git
|
1
deps/colors.sh
vendored
1
deps/colors.sh
vendored
@ -1 +0,0 @@
|
||||
Subproject commit 9efc4b0ec45765dcb3f7bfd22d167f369eff88b1
|
@ -1 +0,0 @@
|
||||
../deps/colors.sh/colors.sh
|
@ -1,32 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Git repo: https://git.a2s.su/iiiypuk/minecraft-launcher
|
||||
|
||||
# include colors library
|
||||
source ./colors.sh
|
||||
|
||||
# Setting terminal emulator title
|
||||
echo -ne "\033]30;Minecraft Launcher\007"
|
||||
clear
|
||||
echo -ne "\033]2;Minecraft Launcher\007"
|
||||
|
||||
# Launcher title
|
||||
echo -e "${BRIGHT_GREEN_B}Minecraft Launcher by ${BRIGHT_RED_B}iiiypuk${NC}"
|
||||
echo -e "${BRIGHT_YELLOW_B}=============================${NC}"
|
||||
echo "Minecraft Launcher by iiiypuk"
|
||||
echo "============================="
|
||||
|
||||
# Set username
|
||||
read -p "$(echo -e ${BRIGHT_CYAN_B}What username would you like?${NC}) " player
|
||||
read -p "What username would you like? " player
|
||||
if [ ! $player ]; then
|
||||
player="Steve"
|
||||
fi
|
||||
echo ''
|
||||
|
||||
# A minecraft root directory
|
||||
MC_DIR=$HOME/.minecraft
|
||||
|
||||
# Get archive from natives/ dir
|
||||
NATIVES_DIR=$MC_DIR/bin/1.20.2
|
||||
|
||||
# Are stored here...
|
||||
# saves/, resourcepacks/ and screenshots/ dirs
|
||||
# and options.txt and servers.dat files
|
||||
GAME_DIR=$MC_DIR/userdata
|
||||
GAME_DIR=$MC_DIR
|
||||
|
||||
# Libraries and resource dir (requires no changes)
|
||||
ASSETS_DIR=$MC_DIR/assets
|
||||
@ -35,9 +29,6 @@ ASSETS_INDEX=5
|
||||
# Version minecraft (from versions/ dir)
|
||||
GAME_VERSION=1.20.4
|
||||
|
||||
# Get archive from natives/ dir
|
||||
NATIVES_DIR=$MC_DIR/bin/$GAME_VERSION
|
||||
|
||||
# *.jar paths from version.json
|
||||
LIBRARIES_LIST="\
|
||||
$MC_DIR/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar:\
|
||||
@ -117,13 +108,9 @@ WINDOW_H=640
|
||||
JVM_RAM="-Xmx2G"
|
||||
JVM_ARGS="-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M"
|
||||
|
||||
# Change directory
|
||||
# Running minecraft
|
||||
cd $MC_DIR
|
||||
|
||||
# Prepare game directory
|
||||
mkdir -p $MC_DIR/userdata
|
||||
|
||||
# Running minecraft
|
||||
$MC_DIR/runtime/java-runtime-gamma/linux/java-runtime-gamma/bin/java \
|
||||
$JVM_RAM $JVM_ARGS \
|
||||
-cp $LIBRARIES_LIST \
|
||||
|
Loading…
Reference in New Issue
Block a user