
Minecraft - Java Edition
Dedicated Server Template
Minecraft Java Edition dedicated server. The official Mojang server software with automatic Java version detection, JAR management, and mod support. Runs in Docker for isolated resource management.
Minecraft - Java Edition Game Server Hosting
Deploy and manage your own Minecraft - Java Edition dedicated server with GameCP's free game server control panel. This template provides a production-ready server configuration with one-click installation, automatic updates via SteamCMD, and full environment variable management. Whether you're hosting for a small group of friends or running a large community server, GameCP makes Minecraft - Java Edition server administration simple and reliable.
Resource Requirements
+50 MiB per player
Recommended Players
Performance Tiers
Economy
Small server, 1-10 players
Standard
Medium server, 10-40 players
Pro
Large server, 40-200 players
Startup Command
Default
Standard Minecraft Java server startup
Aikar's Flags (Optimized)
Optimized JVM flags recommended by Aikar for Minecraft servers. Best for servers with 10+ players.
ZGC Low Latency
Generational ZGC for ultra-low pause times. Best for competitive or latency-sensitive servers. Requires Java 21+.
Environment Variables
SERVER_NAME
RequiredServer Name
Server name displayed in the server browser
(empty)MAX_PLAYERS
RequiredRead OnlyMax Players
Maximum number of concurrent players
20MOTD
Read OnlyMessage of the Day
Message of the Day shown in the server browser. Defaults to the server name.
${SERVER_NAME}GAMEMODE
Game Mode
Default game mode for new players
survivalDIFFICULTY
Difficulty
Server difficulty level
easyLEVEL_NAME
World Name
Name of the world/level folder
worldPVP
Enable PvP
Allow players to fight each other
trueSPAWN_MONSTERS
Spawn Monsters
Allow monsters to spawn naturally
trueWHITE_LIST
Whitelist
Only allow whitelisted players to join
falseALLOW_FLIGHT
Allow Flight
Allow players to fly in survival mode. Enable this if using mods or Creative mode to prevent kick for "flying".
falseSPAWN_PROTECTION
Spawn Protection
Radius of blocks around spawn that only ops can break. Set to 0 to let everyone build at spawn.
16MINECRAFT_VERSION
Read OnlyInstall Version
Version to use when installing or reinstalling the server. Use 'latest' for the newest release, or specify a version like '1.21.11'. Admin only.
latestHARDCORE
Hardcore Mode
Players are banned when they die
falseFORCE_GAMEMODE
Force Game Mode
Force players to the default game mode
falseALLOW_NETHER
Allow Nether
Allow players to travel to the Nether
trueLEVEL_SEED
World Seed
Seed for world generation. Leave empty for a random seed. Set this before the first start to control your world layout.
(empty)LEVEL_TYPE
World Type
Type of world to generate
minecraft:normalGENERATE_STRUCTURES
Generate Structures
Generate villages, dungeons, etc.
trueONLINE_MODE
Online Mode
Verify players with Mojang servers (disable for cracked servers)
trueENFORCE_WHITELIST
Enforce Whitelist
Automatically remove non-whitelisted players
falseENFORCE_SECURE_PROFILE
Enforce Secure Profile
Require players to have a valid profile
trueENABLE_RCON
Enable RCON
Enable remote console access
falseRCON_PASSWORD
RCON Password
Password for RCON access
(empty)ENABLE_QUERY
Enable Query
Enable server query protocol
trueENABLE_STATUS
Enable Status
Show server in server list
trueENABLE_COMMAND_BLOCK
Enable Command Blocks
Allow command blocks to be used
falseVIEW_DISTANCE
View Distance
How far players can see in chunks. 10 is the sweet spot for most servers. Lower to 6-8 for better performance on limited hardware.
10SIMULATION_DISTANCE
Simulation Distance
Maximum chunk simulation distance (3-32)
10MAX_TICK_TIME
Max Tick Time
Maximum time a single tick can take (milliseconds)
60000NETWORK_COMPRESSION_THRESHOLD
Network Compression
Compress packets larger than this size (bytes)
256JAVA_XMX
RequiredRead OnlyMax Memory (Xmx)
Maximum memory allocation for the Java process (e.g., 2G, 4G, 8G)
2GJAVA_XMS
RequiredRead OnlyInitial Memory (Xms)
Initial memory allocation for Java (e.g., 1G, 2G)
1GLifecycle Scripts
Installation Script
Downloads the Minecraft server JAR file and accepts the EULA.
Cleanup Old Logs Before Start
Cleans up old log files before starting the server
Configuration Files
Server Properties
Main Minecraft server configuration file. Uses Rules Mode to update key=value pairs in the server-generated server.properties file.
//server.propertiespropertiesContainer Configuration
Docker Image
eclipse-temurin:21-jre-alpine
Technical Profile
Template ID
minecraft-java
Author
GameCP Team
Last Updated
March 15, 2026
Status
ActiveConfiguration Metadata
Information about the origin and version of this game configuration.
Author
GameCP Team
Version
1
Source
gamecp