CubeWorx Minecraft Bedrock Edition Server with support for installing addons
2.6K
This image is a self-contained Minecraft Bedrock Edition Server with support for add-ons. It is intended for use in the upcoming CubeWorx ecosystem but is also being provided for use in the Minecraft community. The image can be used standalone or combined with manymine to host multiple games on the same server.
docker run -d -it -p 19132:19132/udp -e EULA=true cubeworx/mcbe-server
The image runs with default or recommended configurations but can be customized through environment variables. Changing any of the environment variables from their defaults will update the server.properties file as described here: https://minecraft.fandom.com/wiki/Server.properties#Bedrock_Edition_3
LEVEL_NAME="Bedrock-Level" | Default level name of world. Customized to remove space in default name |
PERMISSIONS_LOOKUP="true" | Specify if player xuids get verified from online api or written as is |
PERMISSIONS_MODE="static" | Specify if permissions file gets overwritten every time container starts |
SERVER_NAME="CubeWorx-MCBE" | Default server name that shows up under LAN Games in the Friends tab |
WHITELIST_ENABLE="false" | Specify if connected players must be listed in WHITELIST_USERS variable |
WHITELIST_LOOKUP="true" | Specify if player usernames get verified from online api or written as is |
WHITELIST_MODE="static" | Specify if whitelist file gets overwritten every time container starts |
The following environment variables are basic ones that you might want to change to customize the game play to your liking.
ALLOW_CHEATSDIFFICULTYGAME_MODELEVEL_NAMELEVEL_SEEDLEVEL_TYPEONLINE_MODESERVER_NAMESERVER_PORTThe following environment variables are more advanced ones that you might want to change to optimize the management or performance of your server.
COMPRESSION_THRESHOLDCONTENT_LOG_FILE_ENABLEDCORRECT_PLAYER_MOVEMENTDEFAULT_PLAYER_PERMISSION_LEVELFORCE_GAMEMODEMAX_PLAYERSMAX_THREADSPLAYER_IDLE_TIMEOUTPLAYER_MOVEMENT_DISTANCE_THRESHOLDPLAYER_MOVEMENT_DURATION_THRESHOLD_IN_MSPLAYER_MOVEMENT_SCORE_THRESHOLDSERVER_AUTHORITATIVE_BLOCK_BREAKINGSERVER_AUTHORITATIVE_MOVEMENTSERVER_PORTV6TEXTUREPACK_REQUIREDTICK_DISTANCEVIEW_DISTANCEThe image utilizes a volume at the /mcbe/data path for persistent storage. This path contains addons, artifacts, backups, worlds and other custom configuration files.
You can mount this volume on the host via docker-compose:
version: '3.8'
volumes:
mcbe-data:
driver: local
services:
mcbe-server:
volumes:
- mcbe-data:/mcbe/data
or via the command line:
docker run -d -it -p 19132:19132/udp -v $(pwd):/mcbe/data -e EULA=true cubeworx/mcbe-server
docker volume create mcbe-data
docker run -d -it -p 19132:19132/udp -v mcbe-data:/mcbe/data -e EULA=true cubeworx/mcbe-server
If your server will not be exposed to the internet and players will only be connecting from tablets, consoles, etc. on the local network then you may want to set ONLINE_MODE=false so that players connecting to your server won't have to authticate. This is especially useful if you have younger children playing on tablets that don't have their own Microsoft accounts.
The CubeWorx API is being developed to help with automatically looking up information such as: versions, gamertags, xuids, etc. This API is currently exerimental and not guaranteed. If you experience issues with the API returning the correct information you can:
XBL_LOOKUP_URL=https://xbl-api.prouser123.me/profile/settingsPERMISSIONS_LOOKUP="false" and WHITELIST_LOOKUP="false"The whitelist is the list of player usernames that are allowed to connect to your server when WHITELIST_ENABLE="true" which should be set if your server is going to be publicly accessible. By default the whitelist file gets overwritten whenever the container starts/restarts to ensure that the usernames match what is in the config.
Setting WHITELIST_MODE="dynamic" will allow whitelist changes made in the game from supported clients to be retained upon start/restart of the container. Since usernames are case-sensitive, they are verified against an xbox live API to make sure there aren't any mistakes. This lookup can be disabled by setting WHITELIST_LOOKUP="false".
The whitelist file is generated from the names included in the WHITELIST_USERS, OPERATORS, MEMBERS, & VISITORS. It is not necessary to enter a username in more than one environment variable. The following example will result in five names being added to the whitelist.
-e WHITELIST_USERS=player1,player2,player3 -e OPERATORS=operator1 -e MEMBERS=member1
Permissions variables can be a list of usernames or XUIDs since the values are verified against an xbox live API when the container first starts. This lookup can be disabled by setting PERMISSIONS_LOOKUP="false" but then will require exact XUIDs to be entered for each user.
By default the permissions file gets overwritten whenever the container starts/restarts to ensure that the username permissions match what is in the config. Setting PERMISSIONS_MODE="dynamic" will allow permission changes made in the game from supported clients to be retained upon start/restart of the container.
If WHITELIST_ENABLE="true" then players in the OPERATORS, MEMBERS, or VISITORS will automatically be added to the server whitelist.
-e OPERATORS=operator1,8675309124 -e MEMBERS=member1,1234567890,member2 -e VISITORS=visitor1
Seeds are special codes that can generate worlds in Minecraft when the server is launched. They cover a variety of places and provide new opportunites to build and explore. A seed can only be specified when first launching the server and once a world has been created then adding, changing, or removing the seed has no impact.
To specify a seed then use the LEVEL_SEED environment variable. You can search online to find seeds to play or you can set LEVEL_SEED=random and one will be pulled from the seeds.txt file included in the image.
Add-ons are ways of enhancing game play by adding custom code and features to the game. Presently supported add-ons are behavior_packs and resource_packs and end in one of these extensions: .addons, .mcpack, or .zip
To add an add-on to a server take the following steps:
addons folder of the data directory on the host.LEVEL_NAME value after a world has been created will result in an entire new world being created.This image was initially inspired by itzg/docker-minecraft-bedrock-server! He has several Minecraft related repositories so be sure to check them out!
Content type
Image
Digest
sha256:da969f3db…
Size
38.4 MB
Last updated
almost 2 years ago
docker pull cubeworx/mcbe-server