How to Get a Command Block in 1.7 10
Download Article
Download Article
Commands (also known as cheats) allow players to change every aspect of a Minecraft world, or even other players in it. Each command block is an in-game item that stores a specific command. Whenever the block activates, that command takes effect. This allows you to build fun toys, convenient tools, or even complex, custom adventure maps full of triggered events.
-
1
Open Minecraft on a PC or Mac. Only the computer edition of Minecraft has command blocks. They are not yet available for Minecraft Pocket Edition or Minecraft for gaming consoles.
-
2
Enter a world where you have console access. Command blocks are in-game items that give access to the Minecraft console. They are powerful tools that let you reshape the whole game — but because of this, they are only available in certain circumstances:
- On a multiplayer server, only the server operators can use command blocks. You'll need to ask an operator to promote you, or host your own server.
- In a single-player world, you'll need to enable cheats if they weren't enabled at world creation. Open the menu and click Open to LAN , check the "Allow Cheats" box, and click Start LAN world . This will only last one play session, but you can repeat it each time you want to add more command blocks.
Advertisement
-
3
Switch to creative mode. Now that you have console access, you can switch to creative mode. This is the only mode that lets you place and program command blocks. Use the following command to accomplish this:
- Hit T to open the console (the chat bar), or press / to open it and automatically enter / to the line you are typing.
- Type /gamemode c and hit Enter to enter creative mode.
- Once you're done setting up command blocks, type /gamemode s for survival mode or /gamemode a for adventure mode.
-
4
Create command blocks. Open the console again with T and type this command: /give (yourusername) minecraft:command_block 64 . Instead of (yourusername), type in your full Minecraft username, without parentheses.
- Your username is case sensitive.
- If nothing happens, you may need to update minecraft to at least version 1.4. Update to the latest version to get access to all commands.
- You can replace the "64" with any number to receive that many blocks. 64 makes a full stack of command blocks.
Advertisement
-
1
Place a command block. Check your inventory and look for the command blocks you just created. The icon is a brown, patterned box with grey control panels on each side. Move the command blocks to your quick slot and place one on the ground, just as you would any item.
-
2
Open the command block interface. Walk up to the command block and right-click to open it, as you would a chest. A window should pop up with a text box.
- If nothing happens, command blocks might be disabled on your multiplayer server. Someone with access to the server.properties file will need to open that file and set enable-command-block to "true" and op-permission-level to "2" or higher.
-
3
Enter a command. You can enter just about any command in the command block's text field, then press Done to save it in the block. There's a long list of commands included below, but try summon Sheep for your first experiment.
- To learn more commands, open the regular console (not the command block) and type /help.
- Unlike the regular console, a command block's text box does not need to start with the / symbol.
-
4
Activate the block with redstone. Connect a trail of redstone dust to the command block, and place a pressure plate on top of the redstone. Walk over the pressure plate to activate the redstone, and a sheep should appear next to the block. This will happen whenever any player or mob activates the redstone.
- This works just like a regular redstone activation. You can replace the pressure plate with a button, lever, or other activation method of your choice. You can even place the button directly on the command block.
- Anyone can use the command block once it's set up, but only players with the right permissions can change the command.
-
5
Learn the special syntax. For the most part, command block text works the same as the regular console. If you aren't familiar with the console yet, check out the example section below to get started. If you already know how to use console commands, these are the only extra terms you need to learn:
- @p targets the player nearest to the command block, no matter how far away she is.
- @r targets a random player, anywhere on the server.
- @a targets every single player on the server, including yourself.
- @e targets every "entity" on the server. This includes practically anything that isn't a block, including players, objects, enemies, and animals. Be careful messing with this one.
- You can use these terms wherever you would use a player name or entity name (although these terms still work fine).
-
6
Modify the syntax for more control (optional). You can create extra-specific commands by adding modifiers after @p, @r, @a, or @e. These use the at [(argument)=(value)]. There are many different arguments and values available. You can look up the full list online, but here are some examples to get you started:
- A command that includes @r[type=Sheep] will affect a random sheep.
- @e[m=c] affects everyone in creative mode. The "m" argument stands for mode, and "c" stands for creative.
- Use the ! symbol to make the opposite value. For example, @a[team=!Commando] will affect every player not on team Commando. (Teams only exist on special player-made maps.)
-
7
Use the Tab key for help. If you know a command, but aren't sure what you can use it for, press Tab and the game will fill it out for you. Press Tab a second time to scroll through a list of options.
- For example, go back to your sheep-summoning block and delete the word "Sheep." Press Tab to cycle through a list of possible entities to summon.
Advertisement
-
1
Make a teleportation box. Save the command tp @p x y z into a command block. Instead of x, y, and z, enter the x-, y-, and z-coordinates of the location you'd like to teleport (for example, /tp @p 0 64 0). When anyone activates this box, the player nearest to the box will vanish and reappear at those coordinates.
- Press F3 to display coordinates.
- Just like any command, you can replace the "@p" with another term. If you type your username, you'll always be the one teleported, even if someone else activates the block. If you use @r, a random player on the server will be teleported.
-
2
Spawn objects or blocks. Assuming you're using Minecraft 1.7 or later, you can make command blocks to summon any entity or block. Here are some examples:
- A command block with summon Boat stored will add a new boat next to the block every time the block becomes activated. The people of your server will never need to wait for a ferry again.
- To spawn a block instead of an entity, use the setblock command instead of the summon command. setblock minecraft:water 50 70 100 turns the block at the coordinates 50-70-100 into water. If there was already a block there, it disappears.
-
3
Destroy objects or players. The kill command will permanently destroy an entity. This one is dangerous to use, since a typo could end up destroying the wrong thing (or even your entire world if you use @e). kill @r[type=Painting,r=50] destroys a random painting within a 50 block radius of the command block.
-
4
Control time and weather. time set day or time set 0 will set the level of sunlight to the specified amount. Try different values instead of 0 to make it any time you like. Once you're tired of ruling over perpetual sunshine, make a block with toggle downfall or weather rain to start the rain.
-
5
Try out even more commands. There are hundreds of commands, which you can find by using /help or searching Minecraft websites. Here are a few more to explore:
- say (message)
- give (player) (item) (number of that item)
- effect (player) (potion effect)
- gamerule
- testforblock
Advertisement
Add New Question
-
Question
What do I do if the command summoned a zombie, but didn't put armor on it?
You need to specify if the zombie has armor: (/summon Zombie) will tell minecraft to summon a regular zombie with nothing extra, like weapons or armor. To summon a zombie with armor, do : /summon Zombie ~ ~ ~ {Equipment:[{id:minecraft:leather_boots},{id:minecraft:leather_leggings},{id:minecraft:leather_chestplate} {id:minecraft:leather_helmet}]}.
-
Question
How do I spawn animals?
Enter summon, and then press tab to select what to summon. You can summon anything from every single mob to a lightning bolt.
-
Question
How do I destroy blocks with command blocks?
The "setblock" command places blocks, including air"blocks", so "setblock minecraft:air [x] [y] [z]" (without the quotes) should remove a block, or actually replace by air.
-
Question
How do I make a spawn point using command blocks?
To create a world spawn point, just simply do "/setworldspawn". That sets the world spawn to where you're standing.
-
Question
How do I summon a castle with a command block?
VagosAdis
Community Answer
You can't summon a castle, but there are some ways to construct it. The first is the fill command in which you do /fill, and the whole area you have selected will be filled. If you've already made a castle, you can do the clone command (/clone) to replicate it.
-
Question
How do I make a message in front of myself, like maps?
Type in /title @p title. Add /title @p subtitle.
-
Question
How can I make a villager talk?
Villagers can't talk, but you can use commands to make it seem like the villagers are talking.
-
Question
How do I put in a command that has already been created?
Find the command that was already created on the internet and copy and paste it into the command console.
-
Question
How can I summon the wither?
Place 4 soul sands like a letter T, then place 3 wither skeleton skulls on the sides and the middle.
-
Question
How do I copy and paste a command from a command block that is currently in use?
VagosAdis
Community Answer
There are two ways. First you can do SHIFT and go forward or backwards using the arrow keys, then do CTRL C and the command will be copied. Do CTRL V to paste it. The second way is to press CTRL and the middle button on the block that has NBT data, and it will be put it in your (creative) inventory.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
-
In the regular console, type /help for a list of commands. Type /help (command name) to learn about a specific command. You can also find more information at Minecraft wikis and community websites.
-
To turn off the chat notifications for a successful command, open the regular console and enter /gamerule commandBlockOutput false.
-
Nothing happens when the signal to a command block turns off. The command block will trigger again once the signal returns.
-
Even if a command block is not connected directly to redstone, it will trigger if an adjacent, solid block has a redstone "signal strength" of 2 or more.
-
Command blocks can't be broken in survival mode.
Thanks for submitting a tip for review!
Advertisement
-
A redstone signal must be boosted by a redstone repeater if it travels more than 15 blocks.
-
You must click Done to save a command block. Closing the window by pressing Esc will not save your command.
Advertisement
About This Article
Article SummaryX
1. Enter a world in which you have console access.
2. Switch to creative mode.
3. Type "/give (yourusername) minecraft:command_block (number of blocks)" at the console.
4. Place and open a command block.
5. Run a command and click Done.
Did this summary help you?
Thanks to all authors for creating a page that has been read 172,605 times.
Did this article help you?
How to Get a Command Block in 1.7 10
Source: https://www.wikihow.com/Use-Command-Blocks-in-Minecraft