/docker-ftb-stoneblock2

Primary LanguageDockerfileMIT LicenseMIT

ftb-Stoneblock 2 - latest

Feed The Beast Stoneblock 2 modpack made by Feed The Beast at https://feed-the-beast.com

NOTE: World reset is required when upgrading from v1/v2 to v3.0.1 or higher.

Modpack for Minecraft 1.12.2. Stoneblock 2 is a general all-purpose pack that is designed for solo play as well as small and medium population servers. This pack contains a mix of magic, tech and exploration mods, and is the largest pack ever built and released by the Feed The Beast Team.

NOTE: In compliance with Mojang "End User License Agreement", you will need to agree to the EULA in order to run your own Minecraft server. By using this container you acknowledge the EULA! If you do not agree, then you are not permitted to use this container! https://account.mojang.com/documents/minecraft_eula

The worldname must be the default "world". Settings will reset when upgrading. Access the console to op and whitelist.

Running ftb-Stoneblock 2 data container: docker run --name [name of your data container] alexcote1/ftb-Stoneblock 2 echo 'Data-only container'

Running ftb-Stoneblock 2 server: docker run --tty=true --interactive=true --detach=true --name [name of your container] --volumes-from [name of your data container] --publish=[port on your host]:25565 alexcote1/ftb-Stoneblock 2

When upgrading sometime items have been remove and therefor you have to confirm removal.
To do so run docker attach [name of your container] and type /fml confirm when prompted to confirm or cancel.
Exit with CTRL+P CTRL+Q.

To access the console:
docker attach [name of container]
Run your commands
To exit: CTRL+P CTRL+Q

Tips:
Check for OS updates: docker exec -u 0 -it [name of your container] /usr/bin/apt update
Install OS updates: docker exec -u 0 -it [name of your container] /usr/bin/apt full-upgrade -y
Download file: docker cp [name of your container]:/minecraft/options.txt .
Upload file: docker cp options.txt [name of your container]:/minecraft/options.txt
Say Hi!: echo "say Hi!" | socat EXEC:"docker attach [name of your container]",pty STDIN
Say CPU and RAM usage: echo "say $(docker stats [name of your container] --no-stream --format "table CPU: {{.CPUPerc}} RAM: {{.MemPerc}}" | sed -n -e 2p)" | socat EXEC:"docker attach [name of your container]",pty STDIN

The first time the server starts it creates the server.properties file with default settings and spawns "world". Not recommended to change these settings by hand.