Command blocks can be used on a Minecraft server to issue console commands from in-game using redstone power. This creates many possibilities for automated functions on a server and can also be used to create fun and creative rewards for players. While complex, these command blocks can be used with mods and plugins to enable unique server experiences that are impossible with any other type of block. Due to the nature of using console commands, command blocks can only be spawned by an operator.
Note: The command block option has been moved to gamerules and is enabled by default on Minecraft versions 1.21.9 and above. For older versions, see here.
How to Get Command Blocks on a Minecraft Server (1.21.9 and above)
1. Launch Minecraft.
2. Go to Options.
3. Choose Controls.
4. Toggle Operator Items Tab to ON.
5. Hit Done.
6. Join the server as an OP user.
7. Press T to open the chat.
8. Run the following command to enable creative mode: /gamemode creative
9. Press E to open the inventory.
10. On the lower right, select the Operator Utilities tab.
11. Drag a command block into the hotbar.
How to Get Command Blocks on a Minecraft Server (1.21.8 and below)
1. Log in to the BisectHosting Starbase panel.
2. Stop the server.
3. Under the Config Files tab, select Server Properties.
4. On the Enable Command Blocks section, choose True from the dropdown.
5. Start the server.
6. Join the server as an OP user.
7. Press T to open the chat.
8. Run the following command to spawn a command block:
/give [Player Name] minecraft:command_block