- Default Minecraft Port:
25565
- Dockerhub
- Curseforge Skyfactor 4
- GitHub Skyfactory 4
- Multiplayer Instructions
- Minecraft Commands
Initially run the following command to accept EULA terms:
docker run --rm \
-v skyfactory4:/var/lib/skyfactory4 \
mikenoethiger/skyfactory4 ash -c 'echo "eula=true" > eula.txt'
This will create the docker volume where all the skyfactory data will be persisted and then write eula=true
to eula.txt
which is the whole eula-terms-accepting magic.
The container is automatically removed after the command terminates (ensured by --rm
).
Now run the server as a container:
docker run -dit \
-p 25565:25565 \
-v skyfactory4:/var/lib/skyfactory4 \
--restart always \
--name skyfactory4 \
mikenoethiger/skyfactory4
Run docker attach skyfactory4
in order to use the interactive minecraft shell. Hit CRTL+P+Q
to exit attached mode.
Run docker volume inspect skyfactory4
in order to get the volume path on the host system, where all the world data and so forth is stored.
- Downlod and unzip Server Files
- Run
install.sh
- (Optional) Update max memory usage in
settings.sh
- Run
ServerStart.sh
to start the server (will initially fail) - After intial server start failed, set
eula=true
ineula.txt
- Run
ServerStart.sh
again and wait until server startet - In the interactive shell type
help
to get a list of available commands. - Type
stop
to save data and stop server.
Skyfactory automatically creates backups and stores them in the backups
folder. My common routine to load a backup is as follows (make sure to cd
to the skyfactory4
volume beforehand):
mkdir archive
mv world archive
mkdir world
cp backups/world/Backup--world--2020-04-11--22-18.zip world
cd world
unzip Backup--world--2020-04-11--22-18.zip
rm Backup--world--2020-04-11--22-18.zip
This routine is summarized in the loadbackup.sh
script provided in this repository. Usage example:
./loadbackup.sh Backup--world--2020-04-11--22-18.zip
Errow shown:
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0
Solution: Go to Edit Profile
and change Java Path to jdk8
.