Command blocks on a server
How to enable command blocks, why they are dangerous on a public server, and how to restrict access to them with permissions.
Updated August 13, 2026
Command blocks are disabled by default:
enable-command-block=true
After a restart, you can get the block with the /give Nick command_block command — it isn't in the creative inventory.
Block types
| Type | Behavior |
|---|---|
| Impulse | Triggers from a redstone signal |
| Chain | Triggers after the previous block |
| Repeat | Runs every tick |
Repeat blocks are the main source of performance drops: 20 executions per second for each block. A dozen such circuits are already visible in profiling — Spark.
Danger
A command block runs with permission level 2, which means it can use /give, /tp, /summon. A player who gains access to placing blocks effectively gains the ability to hand out any item.
That's why on public servers:
- only administrators can place blocks;
- the area with circuits is protected by a region — WorldGuard;
/give command_blockisn't included in kits and isn't sold as a donor perk.
Console output
Every trigger is written to the log and clutters it. You can disable it with a rule:
gamerule commandBlockOutput false
gamerule logAdminCommands false
Alternative
For most tasks (teleports, rewards, announcements), plugins are more convenient and cheaper in terms of load: they run on an event, not twenty times per second. Command blocks are good where you need vanilla map mechanics.
