← All guides

How to Make a Minecraft UHC Server for Friends

Updated December 4, 2026 · 4 min read

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.

Short answer
Turn off natural regeneration with /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

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:

  1. Set everyone to survival with /gamemode survival @a.
  2. Clear inventories with /clear @a and heal with /effect give @a minecraft:instant_health 1 10.
  3. Set the time to morning with /time set day.
  4. 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

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

We use cookies for analytics & ads to measure how our site performs. Essential cookies always run. See our Privacy Policy.