MINECRAFT · ITEM

Barrier
- Item
An invisible block that blocks movement and objects, used by admins to create invisible walls and boundaries on servers.
Questions about the Barrier? Ask the GameServersHub Discord for answers from real server owners. Updated .
About
The Barrier is an invisible, unbreakable block that collides with players and entities but does not render or appear in the creative inventory. It is intended for map design and server administration only.
Admins use barriers to create invisible walls, fence off restricted areas, or establish map boundaries without disrupting the visual landscape. The block cannot be obtained in survival mode and does not drop when broken. Place it in creative mode or spawn it with the give command. Barriers stack to 64 and cannot be destroyed by players in survival.
Because barriers are completely invisible, clearly document their placement on your server so admins and players understand why movement is blocked in specific locations.
Frequently Asked Questions
- What items are related to the Barrier?
- See the Related section at the bottom of this page for items commonly used alongside the Barrier, or open Browse Games to explore the full Minecraft database.
- What does the Barrier do in Minecraft?
- An invisible block that blocks movement and objects, used by admins to create invisible walls and boundaries on servers.
- Can I get the Barrier without spawning it?
- Yes. The Barrier can also be obtained through normal Minecraft progression. Admins usually spawn it for speed when testing, running events, or outfitting players, which is what the commands on this page are for.
- How current is the Barrier spawn info?
- The Barrier entry was last verified on GameServersCodex on June 29, 2026. We track the live Minecraft build, so the IDs and commands here reflect the current patch.
- Which game is the Barrier from?
- The Barrier is from Minecraft. Every ID, code, and command on this page is specific to Minecraft and its current live build.
- What is the Barrier used for?
- The Barrier is an invisible, unbreakable block that collides with players and entities but does not render or appear in the creative inventory. It is intended for map design and server administration only.
- What is the item id of the Barrier?
- The item id of the Barrier is minecraft:barrier.
- What is the numerical id of the Barrier?
- The numerical id of the Barrier is 166.
- What is the give command of the Barrier?
- The give command of the Barrier is /give @p minecraft:barrier 1.
- What is the stackable of the Barrier?
- The stackable of the Barrier is Yes.
- What is the max stack size of the Barrier?
- The max stack size of the Barrier is 64.
- What is the hardness of the Barrier?
- The hardness of the Barrier is 0.0.
- What is the diggable of the Barrier?
- The diggable of the Barrier is No.