command_blocks_work is true (it is by default). On older versions, switch on Command blocks in Server Properties and click Save and restart. To place and edit a command block, a player needs operator level 2 or higher and Creative mode.
Before you start
- Know your version. The top of Version Changer shows it, for example Currently installed: Paper 26.1.1 (#29).
- Be an operator with level 2 or higher. See how to op someone.
How to enable command blocks on Minecraft 1.21.9 and newer
In Minecraft 1.21.9 Mojang removed theenable-command-block line from server.properties and replaced it with a gamerule. Since 1.21.11 the gamerule is called command_blocks_work. It is on by default, so command blocks work unless someone turned it off.
1
Check the gamerule
Open your server’s Console in the Game Panel and type:
2
Turn it on if needed
If the answer is It applies at once, without a restart. Gamerules are saved with the world.
false, type:How to enable command blocks on Minecraft 1.21.8 and older
1
Open Server Properties
Open your server in the Game Panel and click Server Properties.
2
Switch on Command blocks
Under Who can join, switch on Command blocks. This sets
enable-command-block=true in server.properties.3
Save and restart
Click Save and restart. The change applies when the server starts.
How to get and use a command block
Command blocks can’t be crafted. The quickest way to get one is thegive command:
1
Switch to Creative
Type
gamemode creative <your name> in the console.2
Give yourself a command block
Type
give <your name> minecraft:command_block in the console. Example: give Steve minecraft:command_block.3
Place and edit it
Place the block and right-click it to enter a command.
How to stop command blocks spamming chat and the console
By default, command blocks tell operators each time they run a command. Turn that off with:commandBlockOutput.
Frequently asked questions
Why does Minecraft say “Command blocks are not enabled on this server”?
On 1.21.9 and newer,command_blocks_work is false. On older versions, Command blocks is off in Server Properties. Turn it on as shown above.
Why can’t I edit a command block?
You need operator level 2 or higher and Creative mode.What were the old gamerule names?
In 1.21.9 and 1.21.10 the command block rule wascommandBlocksEnabled. Minecraft 1.21.11 renamed all gamerules to lower-case names with underscores.
Related guides
Minecraft server guide
Every Minecraft guide in one place.
Gamerules list
All the gamerules you’ll use.
Give and remove op
Set operator level 2 or higher.
Server commands
Console and op commands.
server.properties explained
Every setting in one table.
Tested by the FREAKHOSTING team on our Game Panel on 29 October 2026 (Minecraft 26.1, Paper and Fabric). Gamerule names checked against the official Minecraft Java Edition 1.21.11 changelog. Steps may differ slightly if the game or its plugins change.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: October 2026