Barrier blocks are creative-mode-only blocks that you cannot obtain in survival mode
A barrier block is an invisible, solid block in Minecraft that stops players and mobs from moving through it, but you cannot see it in the game world. It exists only in Creative mode and in commands — you cannot find it, craft it, or mine it in Survival mode. If you want to use barrier blocks, you need either Creative mode access on your world or the ability to run commands on a server.
Barrier blocks are useful for building invisible walls, keeping players out of certain areas, or creating invisible floors and ceilings in custom maps. They are often used in multiplayer servers, adventure maps, and mini-games where builders want to control player movement without visible structures.
Key Takeaways
- Barrier blocks only exist in Creative mode or through commands — they do not exist as items you can carry or place in Survival mode.
- In Creative mode, you can find barrier blocks in the creative inventory and place them like any other block.
- On a multiplayer server or in a single-player world with cheats enabled, you can use the command /give @s barrier to add a barrier block to your inventory.
- Barrier blocks are invisible in the game world but show a red outline when you hold one in your hand or look directly at them in Creative mode.
- You need either operator (op) status on a server or cheats enabled in your world to use commands that give you barrier blocks.
Getting barrier blocks in Creative mode
If your world is set to Creative mode, open your creative inventory by pressing E (on Java Edition) or the inventory button on your controller. Search for "barrier" in the search box, or scroll through the decoration blocks section. The barrier block appears as a red X symbol in your inventory. Click it to add it to your hotbar, then place it like you would any other block.
When you hold a barrier block in your hand, you will see a red outline around it. Once placed, the block becomes invisible in the game world, but you can still see its outline when you look directly at it. This outline disappears for other players unless they are also in Creative mode or holding a barrier block themselves.
Using commands to get barrier blocks in Survival mode
If your world has cheats enabled, you can use a command to give yourself a barrier block without switching to Creative mode. Open the chat window by pressing T (Java Edition) or the right arrow button (console editions), then type /give @s barrier and press Enter. The barrier block will appear in your inventory.
On a multiplayer server, you need operator status to run this command. Ask the server owner or an admin to give you op status, or ask them to run the command for you. Once you have the barrier block in your inventory, you can place it in the world like a regular block.
Enabling cheats in your single-player world
If you created a Survival mode world without cheats enabled, you can turn them on without losing your progress. Open the world to LAN by pressing Esc, then click "Open to LAN." A menu will appear with a toggle for "Allow Cheats" — turn it on and click "Start LAN World." You now have access to commands in that world session.
This change only lasts while the world is open to LAN. When you close the world and reopen it, cheats will be off again unless you repeat this step. If you want cheats permanently enabled, you will need to create a new world and turn cheats on during world creation, or edit the world's settings file directly.
Barrier blocks on multiplayer servers
On a server running Spigot, Paper, or another Java Edition server software, the server owner can give barrier blocks to players using the same /give @s barrier command. The server owner can also use plugins to automate this — for example, a plugin might give barrier blocks to builders when they join, or allow players to request them through a command.
If you are building on a server and need barrier blocks, ask the owner or an admin. They can either give you op status so you can use commands yourself, or they can place the blocks for you. Some servers restrict barrier block use to prevent players from creating invisible traps or blocking off areas unfairly.
What barrier blocks look like and how to see them
Barrier blocks are completely invisible once placed in the game world. You cannot see them unless you are holding one in your hand — then they show a red outline. If you place a barrier block and walk away, you will not be able to see where it is unless you return to Creative mode or hold another barrier block.
To find barrier blocks you have already placed, switch to Creative mode temporarily and look for the red outlines. You can also use the command /fill with a barrier block to replace a large area, or use /clone to copy barrier blocks from one location to another. In Creative mode, you can see all barrier blocks you have placed by looking at them directly.
Alternatives if you cannot use barrier blocks
If your server does not allow barrier blocks or you do not have access to commands, you can use other invisible blocks to control player movement. Bedrock is invisible in the Nether and End, and you can use it as a wall if your map is set in those dimensions. You can also use very dark blocks like obsidian or blackstone and hide them behind terrain or structures.
Another option is to use invisible armor stands or other entities with collision boxes, though this is more complex and requires commands. Some servers use plugins that create invisible barriers without using barrier blocks at all. Ask your server owner what options are available for your situation.
Frequently Asked Questions
Can I get a barrier block in Survival mode without commands?
No. Barrier blocks do not exist as items in Survival mode and cannot be found, crafted, or mined. You must either switch to Creative mode or use a command to obtain one.
Why can't other players see the barrier blocks I placed?
Barrier blocks are invisible to all players by design. Other players will see the red outline only if they are holding a barrier block themselves or are in Creative mode. This is why they are useful for invisible walls and secret passages.
What happens if I try to place a barrier block in Survival mode without cheats?
You cannot place a barrier block in Survival mode at all unless you obtained it through a command. If you do not have cheats enabled or op status, the /give command will not work, and you will not have a barrier block in your inventory.
Can I use barrier blocks on a server that does not allow cheats?
Only if the server owner or an admin places them for you, or if they have given you op status. If the server has cheats disabled and you do not have op status, you cannot use the /give command yourself.
Do barrier blocks work the same way on Bedrock Edition as Java Edition?
Yes, barrier blocks work the same way on both editions — they are invisible, solid blocks that only exist in Creative mode or through commands. The command syntax is identical: /give @s barrier.