Give 64 Barrier Blocks
Get invisible unbreakable barrier blocks
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Gives a stack of barrier blocks — completely invisible, indestructible in survival, and only obtainable through commands. Perfect for invisible walls on adventure maps, servers, and parkour courses. They show a red icon only while you hold one in hand.
/give @p barrier 64- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and press Enter.
- Place barriers where players must not pass.
- Switch to another hotbar slot — the barriers turn invisible.
Related commands
Give 64 Sponges
Get a stack of sponges for draining water
Give Light Blocks
Get invisible light source blocks
Give Invisible Item Frame
Create a floating item display with no visible frame
Give a Command Block
Get a command block (it isn't in the creative menu)
Give Elytra
Get a pair of elytra wings
Give Netherite Pickaxe Silk Touch
Get a netherite pickaxe with Silk Touch