Video Summary
In this video, I demonstrate how to use the /worldborder command in Minecraft Java Edition, covering everything from setting up a creative world with cheats enabled to creating and manipulating world borders using various commands. I show viewers how to center the border, adjust its size, make it expand or shrink over time, set damage values for players outside the border, and use command blocks to create continuously repeating effects. This tutorial provides a comprehensive guide to controlling and customizing world borders for gameplay and map creation purposes.
How To Use The /Worldborder Command in Minecraft Java Edition
Hey everyone! Today I’ll be showing you how to use the world border command, so let’s get straight into it!Setting Up Your World
First, create a new world — I’ll just call mine “World Border.” Make sure you set it to Creative mode and that cheats are enabled so you can use commands. Once your world is created, we’re good to go!Getting a Command Block
Before we dive in, if you don’t know how to get a command block, here’s how: Type the following into chat:/give @a command_blockMake sure you include the underscore between “command” and “block” — it will not work without it! Hit enter and it should give you a command block. We’ll be using this in the second part, so hold onto it.
Setting the World Border
By default, you won’t be able to see the world border anywhere, and walking to it would take you years — it’s incredibly far away. So instead, we’ll bring it to us. Start by centering the world border at your location:/worldborder center ~ ~Those two squiggly lines (
~ ~) set the center to your current position. Hit enter, then run:
/worldborder set 60000000
Note: Be careful typing this number — entering it incorrectly could cause issues with your world. The default maximum world border size is 60,000,000 blocks.You’ll notice your screen flashes red — that’s okay! It just means the world border has been reset. Now let’s add a smaller border:
/worldborder add 10As you can see, you now have a world border and you can’t go outside of it. Everything beyond the barrier is kind of frozen — mobs can’t walk, water stops moving, you can’t mine outside of it. It’s pretty wild!
Expanding the World Border
You can add more blocks to the border using the same command:/worldborder add 10You can also add a second number to specify how long the expansion should take (in seconds). For example, to expand by 10 blocks over 20 seconds:
/worldborder add 10 20When the border starts expanding it will glow green, and once it finishes it will turn blue. Personally, I love the green — it looks really cool!
Shrinking the World Border
You can also shrink the border by using a negative value. For example, to shrink by 10 blocks over 10 seconds:/worldborder add -10 10That’s roughly one block per second, which is a little slow, but you can clearly see the barrier closing in. If you’re in Survival mode, staying outside the border while it shrinks will start damaging you.
Adjusting the Damage
Speaking of damage, you can control how much health you lose outside the border using:/worldborder damage amount 0.1Setting it to
0.1 means you’ll only lose 0.1 hearts per second when just outside the border. The further outside the barrier you go, the more damage you take.
Note: There is a safe zone of approximately 3 blocks just outside the border before damage begins.





