Barrier blocks only exist in Creative mode and require commands in Survival

A barrier block is an invisible, solid block in Minecraft that you cannot obtain through normal gameplay. In Creative mode, you can find it in the creative inventory and place it freely. In Survival mode, you must use a command to summon one, and it will disappear if you try to pick it up — barrier blocks cannot be mined or collected as items.

Barrier blocks are useful for building invisible walls, creating map boundaries, or blocking off areas without changing the landscape. They are purely a building tool and have no survival purpose like mining or crafting.

Key Takeaways

  • In Creative mode, search for "barrier" in the creative inventory and place it like any other block.
  • In Survival mode, use the command /give @s barrier to add a barrier block to your inventory, but only if cheats are enabled.
  • Barrier blocks are invisible when placed and cannot be broken or collected by mining them.
  • Barrier blocks work the same way on Java Edition and Bedrock Edition, though the command syntax differs slightly on Bedrock.

Finding barrier blocks in Creative mode

Open your creative inventory by pressing E (or your inventory key). At the top of the inventory window, you will see a search box. Type "barrier" into the search field. The barrier block will appear as a single result — it looks like a purple and black checkerboard pattern in the inventory.

Click the barrier block to select it, then place it in your world like any other block. You can stack multiple barrier blocks to create walls or structures. Unlike in Survival mode, barrier blocks in Creative mode stay in place and do not vanish when you try to break them.

Using commands to get barrier blocks in Survival mode

To use commands in Survival mode, you must first enable cheats. Open your world settings and toggle "Allow Cheats" to on. Once cheats are enabled, press T to open the chat window and type the following command:

/give @s barrier

Press Enter. A barrier block will appear in your inventory. You can now place it in your world. If you want multiple barrier blocks at once, use /give @s barrier 64 to receive a stack of 64.

What happens when you try to break a barrier block

If you place a barrier block and then try to mine it with any tool, nothing will happen — the block will not break and will not drop as an item. This is by design. Barrier blocks are meant to be permanent structures that cannot be removed through normal mining.

To remove a barrier block, you must either use a command like /setblock ~ ~ ~ air (which replaces the block with air) or reload your world without saving. There is no survival-mode way to destroy a barrier block once it is placed.

Differences between Java Edition and Bedrock Edition

On Java Edition, the command /give @s barrier works exactly as described above. On Bedrock Edition (Windows 10/11, console, mobile), the syntax is slightly different: use /give @s barrier 1 instead. The number at the end specifies how many blocks you want, so /give @s barrier 64 gives you a full stack.

Both editions treat barrier blocks the same way once placed — they are invisible, solid, and cannot be mined. The only difference is the command you type to obtain them.

Making barrier blocks visible while building

Because barrier blocks are invisible, it can be hard to see where you have placed them while building. To make them temporarily visible, hold a barrier block in your hand. When you hold one, all barrier blocks in your view will show their purple and black checkerboard texture, making them easy to see.

Once you place the block and switch to a different item in your hotbar, the barrier blocks will become invisible again. This is a useful trick for planning invisible walls or checking your work before finalizing a build.

Common uses for barrier blocks

Barrier blocks are popular for creating invisible boundaries in multiplayer worlds, keeping players out of off-limits areas without building visible walls. Map creators use them to block off the edges of custom maps or to create invisible platforms for parkour courses. Some builders use them to create invisible rooms or secret passages that only appear when you know where to walk.

They are also useful for protecting specific areas in Creative mode builds without cluttering the landscape with solid blocks. Because they take up space but are not visible, they let you design cleaner-looking structures.

Frequently Asked Questions

Can I get a barrier block in Survival mode without enabling cheats?

No. Barrier blocks do not exist in the normal Survival mode loot table and cannot be found, crafted, or mined. Enabling cheats is the only way to obtain one in Survival mode.

Will a barrier block disappear if I reload my world?

No. Once you place a barrier block using a command, it stays in your world permanently until you remove it with another command or manually edit the world file. Reloading or restarting does not affect it.

Can other players see barrier blocks I place?

Barrier blocks are invisible to all players, including yourself, unless you are holding one in your hand. On multiplayer servers, other players will not see the checkerboard texture — they will only see empty space where the block is.

What is the difference between a barrier block and a bedrock block?

Bedrock is a visible, unbreakable block found naturally at the bottom of the world. Barrier blocks are invisible and only exist as a building tool. Bedrock cannot be obtained in Survival mode either, but it looks like stone and is visible, whereas barrier blocks are completely transparent.

Can I use barrier blocks to stop mobs from spawning?

No. Barrier blocks do not prevent mob spawning. They only block movement and line of sight. If you want to stop mobs from spawning in an area, you need to light it up or use other methods like slabs or carpets.