Get Command Blocks in Minecraft

Revision as of 03:01, 24 December 2016 by Kipkis (Kipkis | contribs) (importing article from wikihow)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Command blocks, which were added in patch 1.4, perform specific actions chosen by the player whenever they are activated. These blocks cannot be crafted in survival mode nor found in the creative mode inventory, so if you want command blocks, you can spawn them in both survival and creative mode with just a few codes.

Steps

Getting Command Blocks in a Newly Created World

  1. Launch Minecraft. Double-click on the game’s icon on your desktop to open it.
    • If you don’t have a Minecraft shortcut icon on your desktop, find it in your programs list and click the icon there.
  2. Start a single-player game. From the main menu of the game, select “Single Player.” This is located at the top of the menu.
    • If you have a server, proceed to Method 2.
  3. Create a world with cheats enabled. Click on “Create New World” at the bottom-right corner of the screen then left-click the “More World Options” button at the bottom of the screen to open advanced new world options. Toggle cheats on by clicking the second button on the left that reads “Allow Cheats: OFF.”
    • Select the “Create New World” button to finish making the world.
  4. Open the chat box. Once the world has loaded, press / on your keyboard to open up the chat box so that a command can be entered.
  5. Get a command block. Type one of these commands (with no quotation marks) into the chat box to attain a command block:
    • /give [your name] minecraft:command_block [number of command blocks you want]” — This command will place a command block directly into your inventory. For example: /give Steve minecraft:command_block 5
    • /setblock x y z minecraft:command_block” — The setblock command changes a particular block into a command block using its location. To determine the location of a block, press F3 on your keyboard and look at the block you wish to change. The coordinates of the block being looked at will be displayed.
    • /summon Item x y z {Item: {id:minecraft:command_block, Count:1}}” — This will summon a command block at the selected location. You can use the ~ symbol to represent your current location for each coordinate.
    • You can also use the command /give 137 [# of entities]. (Do not include the brackets in the command.)
  6. Have fun trying out new commands!

Getting Command Blocks in an Existing World or Server

  1. Launch Minecraft. Double-click on the game’s icon on your desktop to open it.
    • If you don’t have a Minecraft shortcut icon on your desktop, find it in your programs list and click the icon there.
  2. Start a single-player game. From the main menu of the game, select “Single Player.” This is located at the top of the menu.
  3. Enter your single player world or server. If you have an existing world or server, select the world from the list then click “Play Selected World.”
  4. Open the chat box. Once the world has loaded, press / on your keyboard to open up the chat box so that a command can be entered.
  5. Get a command block. Type one of these commands (with no quotation marks) into the chat box to attain a command block:
    • /give [your name] minecraft:command_block [number of command blocks you want]” — This command will place a command block directly into your inventory. For example: /give Steve minecraft:command_block 5
    • /setblock x y z minecraft:command_block” — The setblock command changes a particular block into a command block using its location. To determine the location of a block, press F3 on your keyboard and look at the block you wish to change. The coordinates of the block being looked at will be displayed.
    • /summon Item x y z {Item: {id:minecraft:command_block, Count:1}}” — This will summon a command block at the selected location. You can use the ~ symbol to represent your current location for each coordinate.
    • You can also use the command /give 137 [# of entities]. (Do not include the brackets in the command.)
  6. Have fun unlocking new abilities, like spawning the Enderdragon!

Setting Command Block Actions

  1. Equip the command block. Equip the command block by pressing E and dragging it into your action bar. Then right-click to place it on the ground.
  2. Open the Set Actions mention. Right-click the command block to open the menu that allows the user to set actions.
  3. Set command block actions. In the text box at the top of the menu, type in a command in the same way you would in the chat box. The command block functions just like the chat; however, it can be attached to a button or a circuit to execute commands automatically.
    • For example: On a command block attached to a button, right-clicking and typing “/xp 100 @p” into the console command textbox then pressing Enter or the “Done” button at the bottom of the menu will cause the player to get 100 experience points each time the button is pressed.
  4. Use the /help feature to learn the exact syntax of hundreds of console commands available. Press / on the keyboard and type in “help” followed by the name of what you want to create a command for.
    • For instance, typing in “/help time” will display “Usage: /time <set:add> <value>”. This means you can set or add the time according to a certain value. Putting this into a command block: “/time set 12000” would set the time in game to 12000 ticks at the press of a button (a Minecraft day consists of 24000 ticks).

Tips

  • The command block action can always be changed.
  • Command blocks are redstone mechanisms; as such, they can be activated by redstone torches and put into circuits like a piston or other redstone mechanism.
  • Any commands that affect the server as a whole or display information that is normally only visible to an individual player are disabled.