How to Make a Minecraft UHC Server for Friends
UHC (Ultra Hardcore) is one of the best games to play with a group. Everyone spawns in the same world, health doesn't come back on its own, and the world border slowly closes in until the last player or team is standing. You can run a full UHC match on your own server with a handful of vanilla commands, no plugins needed.
/gamerule naturalRegeneration false, set a world border with /worldborder set 2000, then shrink it during the match with /worldborder set 100 3600. Spread players out with /spreadplayers, and use /team if you're playing in teams. A fresh world and 4 to 6 GB of RAM work well for up to 20 players.What makes it UHC
- No natural regeneration. You only heal with golden apples, potions and suspicious stew.
- One life. When you die, you're out (you can watch in spectator mode).
- A shrinking border. The playable area gets smaller over time, which forces everyone together for the final fight.
Everything else is normal survival, which is what makes it fun: you still need to mine, craft and gear up before the border pushes you into a fight.
Step 1: Start a fresh world
UHC works best on a brand new world so nobody has a head start. Set a new seed or reset the world before the match. See how to reset a Minecraft world on a server.
Pre-generating the area inside the border is a good idea, so chunks don't lag when 10 people run in different directions at once. See how to pre-generate a Minecraft world.
Step 2: Set the gamerules
Run these as an operator (from the console or in game):
/gamerule naturalRegeneration false
/difficulty hard
/gamerule doImmediateRespawn true
naturalRegeneration false is the one that makes it UHC. Hard difficulty is the usual choice. Our gamerules list has the rest if you want to tweak more.
To show everyone's health in the tab list, add a health scoreboard:
/scoreboard objectives add health health
/scoreboard objectives setdisplay list health
Step 3: Set up the world border
Center the border on spawn and set the starting size. 2000 blocks across is a good size for 8 to 20 players:
/worldborder center 0 0
/worldborder set 2000
During the match, shrink it over time. This command shrinks it to 100 blocks across over 3600 seconds (one hour):
/worldborder set 100 3600
Players outside the border take damage, so they need to keep moving in. Our world border guide explains the other options.
Step 4: Make teams (optional)
Solo UHC is classic, but teams of 2 or 3 are great for mixed skill groups:
/team add red
/team modify red color red
/team modify red friendlyFire false
/team join red Steve Alex
Repeat for each team. Teammates show up in their team color, and friendlyFire false stops accidents.
Step 5: Start the match
When everyone is online, spread players out across the map so nobody starts next to each other:
/spreadplayers 0 0 200 900 true @a
That spreads all players (@a) at least 200 blocks apart within 900 blocks of the center, and keeps teams together (true). Then:
- Set everyone to survival with
/gamemode survival @a. - Clear inventories with
/clear @aand heal with/effect give @a minecraft:instant_health 1 10. - Set the time to morning with
/time set day. - Start the border shrinking with
/worldborder set 100 3600.
When someone dies, put them in spectator with /gamemode spectator <player> so they can watch the rest of the game.
Want it more automatic? Use a plugin
If you run UHC every week, a UHC plugin on a Paper server handles the lobby, teams, border, death messages and spectators for you. Search Modrinth or SpigotMC for "UHC" and pick one that's been updated for your server version. Test it before game night, since a broken plugin is the fastest way to ruin a match. See how to test Minecraft plugins before adding them.
Tips for a good match
- Pick a time and post it a week ahead in Discord, with the time zone.
- Turn on a whitelist so only your group can join. See how to whitelist a Minecraft server.
- Bedrock friends can join too with Geyser. See how to set up Geyser crossplay.
- 4 to 6 GB of RAM is plenty for up to 20 players. Pre-generation matters more than extra RAM.
If you're planning a one-night event, our guide on a Minecraft server for a game night or event covers the setup side.
Want a server that just runs fast?
FreaksMC servers run on AMD Ryzen 9 7950X3D processors with fast NVMe storage. Pick vanilla, Paper or a modpack and your server is ready in minutes.
See plans from $4/mo