The Simple Way to Get Command Block in Minecraft
A command block is a special block in Minecraft that executes commands without player input. It is used for automation, creating mini-games, maps, scenarios and command chains.
Each step is detailed here so you can easily add this powerful element to your game.
To get started, launch Minecraft and select the single-player game.
On the worlds selection screen, find the button to create a new world.
Be sure to turn on the cheats! If you forget to enable cheats, the command to issue a command block will not work and you will have to start over.
After activating the necessary settings, create a world and wait for a full load. If you plan to play with friends, make sure that when you open the game in the LAN also activated the “Allow cheats” option.
Now you're ready to move on to the main part - getting the command block.
Open the game console by pressing the T key. In the field that appears, enter the command:
/give <your_name_player> command_block
Replace <your_player_name> with the actual name of your character in the game. The game will automatically suggest suitable options, so it will be difficult to make a mistake. After entering the command, press Enter. The command block will appear in your inventory.
You can place it in any convenient place. Right-click on the block and the interface for entering commands will open.
Enter, for example, a simple command like say Hello, press “Done”, and then place a button or any other activation mechanism next to it. When you click on the button, the block will execute your command and the message “Hi” will appear in the chat.