Barrier

A barrier is an invisible block which appears transparent, but has mixed properties.

Obtaining
Like command blocks, barriers are not listed in the Creative inventory, and can only be obtained using the command. Barriers are unobtainable in survival mode without cheats, like command blocks, bedrock, and Mob Spawners.

Usage
All dependent blocks can be placed on a barrier, such as trapdoors or redstone, however, it lets light through and renders adjacent surfaces.

The block in the player's inventory shows up as a red box with a slash through it (commonly referred to as a "No" sign), but when placed is completely see-through (similar to that of air). Like bedrock, end portal frames, and command blocks, it is indestructible, meaning that it can only be destroyed in Creative mode.

In Creative mode, if a player is holding a barrier block in their hand, all placed barrier blocks display an inverted "No" sign, thus becoming visible and allowing the builder to see placed barrier blocks. But once the player switches to another block in their hand, the "No" signs within the barrier blocks disappear, thus rendering the blocks totally invisible again. This effect is client-side, and if a player holds a barrier block in survival, the "No" signs won't show up. They only show in Creative.

Pocket Edition properties
In Pocket Edition, barriers spawn naturally as the border of Old maps. When placed, it grants an X-ray effect, allowing to locate caves and strongholds. It can also be broken by a Nether Reactor if inside the world, however on the outside, the barrier will simply cut off the structure. At the height limit, the barriers are no longer present, allowing you to walk over them harmlessly. Even with all of its wonderful properties, the barrier does leave a shadow, which can give away secret bridges or defenses.

Projectile weapons directed at the block will strangely pass through, and they will be blackened as they are in a light level of 0. Mobs are also blackened, and will suffocate.

If a semi-block, like a stairs (with it sloping down towards the block) or fence, the side facing the barrier will be severely blackened, with a light level of 0 as in the barrier.

Keep in mind that barriers cannot be obtained without hacking, and when placed, can only be broken in Survival as you cannot activate a Nether Reactor in Creative, or punch the block away.

Trivia

 * Barriers cannot be pushed by pistons and can only be destroyed in Creative mode.
 * A barrier in the inventory is the second block that uses its respective block ID, but does not display in the inventory as itself (the first being the hopper). Note that this is unlike similar blocks, such as the cauldron, that use a separate item ID.
 * The "No" symbol that shows up when holding the Barrier Block in Creative mode is actually a particle. It can be used via.
 * The Barrier can be an effective tool for invisible walls in adventure maps.
 * The "No" symbol used is actually an inversed version of the ISO standard.
 * Mobs cannot spawn on barrier blocks.

Gallery
Barriere Barrière invisible Bariera pt-br:Barreira Барьер