Skip to content
[/craft]

Give 64 Barrier Blocks

Get invisible unbreakable barrier blocks

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Gives 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
19 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command and press Enter.
  3. Place barriers where players must not pass.
  4. Switch to another hotbar slot — the barriers turn invisible.

Related commands

Get a stack of sponges for draining water

/give @p sponge 64

Get invisible light source blocks

/give @p light

Get a command block (it isn't in the creative menu)

/give @p command_block

Get a pair of elytra wings

/give @p elytra

Get a netherite pickaxe with Silk Touch

/give @p netherite_pickaxe[enchantments={silk_touch:1}]

Get a beacon block without defeating the Wither

/give @p beacon