A Barrier is a PC-exclusive invisible block that can serve as a better alternative for bedrock, replaced by "Invisible Bedrock" (Bedrock Edition), as it is indestructible. When a player is in Creative Mode and they are holding a barrier block in their hand, every barrier block placed will display a red circle with a slash since it is a client-side particle. The range of this effect is limited to the regular range of particles, and it only becomes visible to a player holding the barrier block.
Like a few blocks, such as the command block, the barrier block can only be obtained via commands. By doing the command:
/give @p minecraft:barrier <amount> (putting "
minecraft:" is optional) will give a player the amount of barrier blocks put in the command. Barrier blocks are unobtainable in Survival unless "cheats" are enabled and used.
- It is one of only three types of blocks that are invisible to a player in-game, the other blocks being air and structure void.
- The barrier block can help a "map builder" "design" a world. For example, they can use the block to restrict players from entering a specific area unless a player is in creative mode.