update fabric
This commit is contained in:
32
fabric/fabric-1.19.3/Dockerfile
Normal file
32
fabric/fabric-1.19.3/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM fithwum/debian-base:bullseye
|
||||
LABEL maintainer "fithwum"
|
||||
|
||||
ENV ACCEPT_EULA="false"
|
||||
ENV GAME_PORT=25565
|
||||
|
||||
# URL's for files
|
||||
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/minecraft/master/fabric/fabric-1.19.3/files/Install_Script.sh
|
||||
|
||||
# Install java-17 & Dependencies.
|
||||
RUN apt-get -y update \
|
||||
&& apt-get -y --fix-broken install \
|
||||
&& apt-get install -y software-properties-common openjdk-17-jdk \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& update-ca-certificates -f;
|
||||
|
||||
# Folder creation.
|
||||
RUN mkdir -p /MCserver /MCtemp \
|
||||
&& chmod 777 -R /MCserver /MCtemp \
|
||||
&& chown 99:100 -R /MCserver /MCtemp
|
||||
ADD "${INSTALL_SCRIPT}" /MCtemp
|
||||
RUN chmod +x /MCtemp/Install_Script.sh
|
||||
|
||||
# Directory where data is stored
|
||||
VOLUME /MCserver
|
||||
|
||||
# 25565 Default.
|
||||
EXPOSE 25565/udp 25565/tcp
|
||||
|
||||
# Run command
|
||||
CMD [ "/bin/bash", "./MCtemp/Install_Script.sh" ]
|
||||
109
fabric/fabric-1.19.3/files/Install_Script.sh
Normal file
109
fabric/fabric-1.19.3/files/Install_Script.sh
Normal file
@@ -0,0 +1,109 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2022 fithwum
|
||||
# All rights reserved
|
||||
|
||||
# Display setup
|
||||
export DISPLAY=0
|
||||
|
||||
# Variables.
|
||||
echo " "
|
||||
echo "INFO ! Checking for latest Minecraft Server version."
|
||||
MC_VERSION_OLD=
|
||||
FABRIC_VERSION_OLD=
|
||||
MC_VERSION=1.19.3
|
||||
FABRIC_VERSION=0.14.18
|
||||
|
||||
SERVER_FILE=https://meta.fabricmc.net/v2/versions/loader/${MC_VERSION}/${FABRIC_VERSION}/0.11.2/server/jar
|
||||
MC_RUN_FILE=https://raw.githubusercontent.com/fithwum/minecraft/master/fabric/fabric-${MC_VERSION}/files/run.sh
|
||||
|
||||
EULA_FILE=https://raw.githubusercontent.com/fithwum/minecraft/master/fabric/fabric-${MC_VERSION}/files/eula.txt
|
||||
OPS_FILE=https://raw.githubusercontent.com/fithwum/minecraft/master/fabric/fabric-${MC_VERSION}/files/ops.json
|
||||
WHITELIST_FILE=https://raw.githubusercontent.com/fithwum/minecraft/master/fabric/fabric-${MC_VERSION}/files/whitelist.json
|
||||
SERVER_PROPERTIES=https://raw.githubusercontent.com/fithwum/minecraft/master/fabric/fabric-${MC_VERSION}/files/server.properties
|
||||
|
||||
# Main install (Debian).
|
||||
# Check for files in /MCserver and download if needed.
|
||||
if [ -e /MCserver/fabric-${MC_VERSION}-${FABRIC_VERSION}.zip ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! fabric-${MC_VERSION}-${FABRIC_VERSION}.zip found starting now."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! fabric-${MC_VERSION}-${FABRIC_VERSION}.zip is out of date/missing ... will download now."
|
||||
echo " "
|
||||
echo "INFO ! Cleaning old files."
|
||||
mkdir /MCserver/old-server-versions/${MC_VERSION_OLD}-${FABRIC_VERSION_OLD}
|
||||
mv /MCserver/fabric-${MC_VERSION_OLD}-${FABRIC_VERSION}.zip /MCserver/old-server-versions/${MC_VERSION_OLD}-${FABRIC_VERSION_OLD}
|
||||
wget --no-cache ${SERVER_FILE} -O /MCserver/fabric-${MC_VERSION}-${FABRIC_VERSION}.jar
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
# Looking for run_${MC_VERSION}.sh
|
||||
if [ -e /MCserver/run_${MC_VERSION}.sh ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! run_${MC_VERSION}.sh found ... will use existing file."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! run_${MC_VERSION_OLD}.sh is out of date/missing ... will download now."
|
||||
mv /MCserver/run_${MC_VERSION_OLD}.sh /MCserver/old-server-versions/${MC_VERSION_OLD}
|
||||
wget --no-cache ${MC_RUN_FILE} -O /MCserver/run_${MC_VERSION}.sh
|
||||
fi
|
||||
|
||||
# Check for needed files
|
||||
if [ -e /MCserver/eula.txt ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! eula.txt found ... will use existing file."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! eula.txt is missing ... will download now."
|
||||
wget --no-cache ${EULA_FILE} -O /MCserver/eula.txt
|
||||
fi
|
||||
|
||||
if [ -e /MCserver/ops.json ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! ops.json found ... will use existing file."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! ops.json is missing ... will download now."
|
||||
wget --no-cache ${OPS_FILE} -O /MCserver/ops.json
|
||||
fi
|
||||
|
||||
if [ -e /MCserver/whitelist.json ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! whitelist.json found ... will use existing file."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! whitelist.json is missing ... will download now."
|
||||
wget --no-cache ${WHITELIST_FILE} -O /MCserver/whitelist.json
|
||||
fi
|
||||
|
||||
if [ -e /MCserver/server.properties ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! server.properties found ... will use existing file."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! server.properties is missing ... will download now."
|
||||
wget --no-cache ${SERVER_PROPERTIES} -O /MCserver/server.properties
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
# Set permissions.
|
||||
chown 99:100 -R /MCserver
|
||||
chmod 777 -R /MCserver
|
||||
chmod +x /MCserver/run_${MC_VERSION}.sh
|
||||
|
||||
sleep 1
|
||||
|
||||
# Run Minecraft server.
|
||||
echo " "
|
||||
echo "INFO ! Starting Minecraft Server ${MC_VERSION}"
|
||||
exec /MCserver/run_${MC_VERSION}.sh --dataPath=/MCserver
|
||||
|
||||
exit
|
||||
3
fabric/fabric-1.19.3/files/eula.txt
Normal file
3
fabric/fabric-1.19.3/files/eula.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
|
||||
#Mon Jul 13 15:34:07 PDT 2020
|
||||
eula=true
|
||||
14
fabric/fabric-1.19.3/files/ops.json
Normal file
14
fabric/fabric-1.19.3/files/ops.json
Normal file
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"uuid": "e9191443-8706-461c-a4a9-6b12b86f7fc0",
|
||||
"name": "fithwum",
|
||||
"level": 4,
|
||||
"bypassesPlayerLimit": true
|
||||
},
|
||||
{
|
||||
"uuid": "fb505f65-bfb5-45f7-8e16-16ce5ef09eb2",
|
||||
"name": "Lacarthian",
|
||||
"level": 4,
|
||||
"bypassesPlayerLimit": true
|
||||
}
|
||||
]
|
||||
16
fabric/fabric-1.19.3/files/run.sh
Normal file
16
fabric/fabric-1.19.3/files/run.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2022 fithwum
|
||||
# All rights reserved
|
||||
|
||||
MC_VERSION=1.19.3
|
||||
FABRIC_VERSION=0.14.18
|
||||
|
||||
cd /MCserver
|
||||
JAR=./fabric-${MC_VERSION}-${FABRIC_VERSION}.jar
|
||||
|
||||
while [ true ]; do
|
||||
java -Xmx4G -Xms1024M -Xmn1G -jar $JAR nogui
|
||||
if [ $? -eq 0 ]; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
56
fabric/fabric-1.19.3/files/server.properties
Normal file
56
fabric/fabric-1.19.3/files/server.properties
Normal file
@@ -0,0 +1,56 @@
|
||||
#Minecraft server properties
|
||||
#Mon Mar 20 15:57:23 PDT 2023
|
||||
enable-jmx-monitoring=false
|
||||
rcon.port=25575
|
||||
level-seed=
|
||||
enable-command-block=true
|
||||
gamemode=survival
|
||||
enable-query=false
|
||||
generator-settings={}
|
||||
level-name=world
|
||||
motd=Welcome to H.O.O.T.S. Fabric Server
|
||||
query.port=25565
|
||||
pvp=true
|
||||
generate-structures=true
|
||||
difficulty=easy
|
||||
network-compression-threshold=256
|
||||
max-tick-time=60000
|
||||
require-resource-pack=false
|
||||
max-players=20
|
||||
use-native-transport=true
|
||||
enable-status=true
|
||||
online-mode=true
|
||||
allow-flight=true
|
||||
broadcast-rcon-to-ops=true
|
||||
view-distance=10
|
||||
max-build-height=256
|
||||
server-ip=
|
||||
resource-pack-prompt=
|
||||
allow-nether=true
|
||||
server-port=25566
|
||||
sync-chunk-writes=true
|
||||
enable-rcon=false
|
||||
op-permission-level=4
|
||||
prevent-proxy-connections=false
|
||||
hide-online-players=false
|
||||
resource-pack=
|
||||
entity-broadcast-range-percentage=100
|
||||
simulation-distance=10
|
||||
player-idle-timeout=0
|
||||
rcon.password=
|
||||
force-gamemode=false
|
||||
rate-limit=0
|
||||
hardcore=false
|
||||
white-list=true
|
||||
broadcast-console-to-ops=true
|
||||
spawn-npcs=true
|
||||
spawn-animals=true
|
||||
snooper-enabled=false
|
||||
function-permission-level=2
|
||||
level-type=default
|
||||
text-filtering-config=
|
||||
spawn-monsters=true
|
||||
enforce-whitelist=true
|
||||
spawn-protection=16
|
||||
resource-pack-sha1=
|
||||
max-world-size=29999984
|
||||
38
fabric/fabric-1.19.3/files/whitelist.json
Normal file
38
fabric/fabric-1.19.3/files/whitelist.json
Normal file
@@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"uuid": "9b8d4ecf-beae-4277-ba52-7c9d25bb1968",
|
||||
"name": "DHRmike"
|
||||
},
|
||||
{
|
||||
"uuid": "6218840a-7cba-4eb6-aec2-5246f2152c8a",
|
||||
"name": "lordWiseman28"
|
||||
},
|
||||
{
|
||||
"uuid": "e9191443-8706-461c-a4a9-6b12b86f7fc0",
|
||||
"name": "fithwum"
|
||||
},
|
||||
{
|
||||
"uuid": "62bb6a62-c176-4ad7-a49d-e5b2ce0954cf",
|
||||
"name": "OzyWizard"
|
||||
},
|
||||
{
|
||||
"uuid": "fb505f65-bfb5-45f7-8e16-16ce5ef09eb2",
|
||||
"name": "Lacarthian"
|
||||
},
|
||||
{
|
||||
"uuid": "a90f9d4e-33d5-4855-9be5-de025b707f54",
|
||||
"name": "Drakaul"
|
||||
},
|
||||
{
|
||||
"uuid": "f4d00276-62f4-4d30-a085-998c71916ecd",
|
||||
"name": "___ORANGE___"
|
||||
},
|
||||
{
|
||||
"uuid": "27b719c4-daf3-429b-af2d-da3aab113f79",
|
||||
"name": "Rekage_"
|
||||
},
|
||||
{
|
||||
"uuid": "d02f2de9-d414-42e2-b2fd-ec18bc2625ef",
|
||||
"name": "Izzy761"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user