Give a Command Block
Get a command block (it isn't in the creative menu)
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Command blocks are hidden from Creative mode inventories — this is the only vanilla way to obtain one. Once given, place the block on the ground and right-click (Java) or tap (Bedrock) to open the interface and type commands. Powered by redstone or by always-active conditional modes.
/give @p command_block22 characters
- Java: yes
- Bedrock: yes
- Command block: no
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command.
- Press Enter — the command block lands in your inventory.
- Place it in the world and right-click to program it with your desired command.
Related commands
Get a netherite pickaxe with Silk Touch
/give @p netherite_pickaxe[enchantments={silk_touch:1}]Get portable storage with 27 slots
/give @p purple_shulker_box