Articles on: Minecraft

How to Enable and Use Command Blocks on Your Minecraft Server

In Minecraft, a command block is a special block that executes commands automatically, without you having to type them in every time. It lets you trigger actions like summoning mobs, changing game settings, or even starting redstone-driven events. When you chain several of them together, you can design complex puzzles, mini-games, or entire automated systems that transform how the game works. They’re a fantastic tool for players who want to dive deeper into custom gameplay and automation.

Step 1:



Log in to your Nexus Hosting Account.



Step 2:



Once on the dashboard, find and select your intended Minecraft server.



Step 3:



Because we’re going to be making changes to the properties file for your server, you need to stop the server first to avoid any risk of file corruption.

Navigate to the Terminal page and click the red Stop button in the upper right corner.



Step 4:



Wait until the console outputs “Server marked as offline…” Then, select the Files option from the sidebar.



Step 5:



Scroll down until you find the server.properties file, then click to open the file editing window. You can edit and save file changes right in your Nexus portal, so you won't need to use a text editor.



Step 6:



Now find the enable-command-block setting (properties are sorted alphabetically, so it should be near the top).



Change its value from false to true and click Save Content.



Step 7:



You can now return to the Terminal page and click the green Start button to restart your server.



Step 8:



To use command blocks, you must have server operator (OP) status. If you haven’t already made yourself an OP, you can check out our step-by-step OP guide for help.

Log into your server. Press “**T**” to open the console and then type the following command:

/give <your_username> minecraft:command_block



Step 9:



A command block will spawn in your inventory. You can place as many of them as you need. Right-click to place it and then right-click the block to open its interface.

You have to be in Creative mode to set a command block. If needed, switch modes by typing /gamemode creative.



Step 10:



You’re now ready to create and execute commands with your command block. For a quick tutorial to get you started with commands, check out this video from OMGcraft (it's older but still very relevant):


You can also reference this Minecraft Wiki page for a comprehensive list of console commands and their functions.**

Updated on: 29/03/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!