✔️ How To Use /Worldborder command in Minecraft Java Eddition ✔️

Video Summary
In this video, I show you how to use the /worldborder command in Minecraft Java Edition, starting with creating a world in Creative with cheats enabled and grabbing a command block. I demonstrate how to center the world border on yourself, set its size, and expand or shrink it instantly or over time. I also explain what happens outside the border, including the safe zone and how to customize damage taken when players step beyond it. Finally, I show how to automate border movement with a repeating command block for effects like a Fortnite-style closing zone.

Formatted Transcript

Today I’ll be showing you how to use the /worldborder command in Minecraft: Java Edition. Let’s get straight into it.

Creating a World and Enabling Commands

First, create a new world (you can name it something like “World Border”). Make sure you set the game mode to Creative and turn Cheats on so you can use commands.

How to Get a Command Block

If you don’t know how to get a command block, use this command:

/give @a command_block

You can also use @p if you only want to give it to yourself:

/give @p command_block

Make sure you type command_block with the underscore, or it won’t work. After you run the command, you should receive a command block in your inventory. We’ll use it later.

Setting the World Border Center

At first, you won’t see a world border anywhere. If you tried to walk to it, it could take a very long time because it may be far away.

To bring the world border to your current location, set its center to where you are standing:

/worldborder center ~ ~

The tildes (~) mean “your current coordinates.”

Setting the Size of the World Border

Now you can set the border’s size. Be careful with the number you enter, because setting it incorrectly can cause problems for your world.

To set the border to a specific diameter, use:

/worldborder set 6000

After you set it, you may notice the screen tint or a color change at the edge—that’s normal. The border will now exist, and you won’t be able to travel beyond it.

Expanding the World Border

You can expand the border by adding blocks to its current size:

/worldborder add 10

You can also make it expand gradually over a set amount of time by adding a second number (time in seconds). For example, to add 10 blocks over 20 seconds:

/worldborder add 10 20

As the border expands, you’ll see it moving outward until it finishes.

Shrinking the World Border

You can also shrink the border by adding a negative value. For example, to reduce the border by 10 blocks over 10 seconds:

/worldborder add -10 10

If you are outside the border while it shrinks, you may be safe briefly, but in Survival mode the border will start damaging you if you remain outside it.

Changing World Border Damage

There’s a “safe zone” near the border, and once you go beyond it you start taking damage. You can control how much damage the world border deals with this command:

/worldborder damage amount 0.1

In this example, it deals 0.1 damage (half a heart equals 1.0). If you go farther outside the border, you’ll take more damage over time.

Using a Command Block to Continuously Change the Border

Now, let’s use the command block. You can put the same world border command into a command block and have it run repeatedly, slowly changing the border over time.

Place the command block, then set it to:

  • Repeat
  • Always Active

For example, you could have it constantly expand the border, and you’ll notice the border keeps moving. As it expands, mobs and animals that were previously stuck beyond the border will be able to move normally again once they’re inside it.

You can also do the opposite—use a negative value so the border slowly closes in. It can feel a bit like a battle royale “storm” or force field pushing players toward the center. If you shrink it down extremely small (like near one block), you can trap yourself inside the border until you change it again.

Wrapping Up

That’s basically how to use the world border command. Thanks for watching—please leave a like, subscribe, and I hope to see you again.

Video Thumbnail

Advertisment

Leave a Reply

Scroll to Top