Minecraft Blogs / Tutorial

All Command Block Commands

  • 38,512 views, 21 today
  • 7
  • 7
  • 4
ColbaltHD's Avatar ColbaltHD
Level 39 : Artisan Nerd
32
Here are all of the commands that you can enter into a command block hope you enjoy D
Redstone Related

/pulse [x,y,z]
If length not set, default button pulse.
/power [level] [x,y,z]
Powers a block as specified in the xyz.

Mob and Player Related

/tag @* ["ID"]
Tags the target with an ID.

/spawnentity (mob name|entity ID) {if entity with extra data, supply data here} [number to spawn]
Spawns an entity.

/launch [player][x][y][z]
Launches the player as if getting knockback from a mob
The x, y and z values determine the strength of knockback in their respective directions

/giveitem [player]
Use: This would require a box somewhere on the command block GUI which you could place one item in. You can put any item in here,
including enchanted items or dyed armor (Which you currently can't give with the /give command,
they have extra values besides damage and data values that describe them), and, when activated, this command would give the player specified that item.
With this, you can give out enchanted things, dyed armor, or written books without a dispenser. No amount or damage value is specified in command because
this can be applied directly
to the item before putting it in the slot (if you put a stack of items in the slot, it will give the player a stack of items)

Block, Item and World Related

/place
Places the with the amount of at the chest you are looking at, or if is true, it will place it in your inventory. will let you place the items in the chest at .

/remove
Removes the with the amount of at the chest you are looking at, or if is true, it will remove the item in your inventory. will let you remove the items in the chest at .

/fill
This command will fill the chest you are looking at with that item, or at the coordinates , and if is true, then it will fill your inventory instead.

/empty
This command will empty the chest you are looking at with that item, or at the coordinates , and if is true, then it will empty your inventory instead. If there is no item ID, then it will empty everything.

/explode [x,y,z]
Makes an explosion at x,y,z with a radius of radius. If no radius specified, creates a creeper explosion size.

/equip [target/selector]
/apply [target/selector]
/give [target/selector]
Does what they say they do.

/name [target] [item] [name for item]
Names the item.

/lore [target] [item] [lore for item]
Gives lore to an item.

/pblock [block ID] [xyz] (override existing block: t|f)
Places a block

/cblock [xyz]
Removes a block

/gamerule dispensersConsumeItems [true|false]
If false, dispensers can keep dispensing without actually using up the items

/togglespawner (on|off)
Toggled whether a spawner's active or not.

/triggerspawner
Makes adjacent spawners or the one specified in xyz spawn the number of mobs specified or 1 if not.

/pause
Toggles world pause.

/sethead [player or mob name]
Changes the held Head into the specified one.

Gamerules

/gamerule cheats (true|false)
Sets if cheats are enabled or not.

/gamerule breakable [IDs or all] (true|false)
Sets whetehr the block is breakable or not. This overrides Adventure Mode.

/gamerule fall @ (true|false)
Sets whether fall damage is on for the target.

/gamerule usable [function] (true|false)
Sets whether the function is usable.

/gamerule explosions (true|false)
Sets whether explosions are enabled or not.

/gamerule fire (true|false)
Sets whether fire is allowed to exist.

/gamerule liquidPour (true|false)
Sets whether fluids can move

/gamerule blockArea <@> (x,y,z) [owner]
Prevents modification of an area except by the owner. If a target is set, it prevents them from modifying it.
Hope you learned!

Please diamond this took some time to make <3
Tags

Create an account or sign in to comment.

1
03/09/2018 5:20 pm
Level 1 : New Miner
hannasp04
hannasp04's Avatar
thx sm but plz update
1
12/30/2016 9:00 am
Level 20 : Expert Goblin
RenderBones
RenderBones's Avatar
Please update it. And the ones listed already are pretty helpful.
1
09/02/2016 10:25 am
Level 1 : New Crafter
technikfe
technikfe's Avatar
It would be nice if you updated it.
1
10/29/2015 10:04 pm
Level 1 : New Miner
shadowforce1231
shadowforce1231's Avatar
would be nice if u put the code to enter in the command block.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome