Minecraft Blogs

1.7 and 1.8 Command List.

  • 39
  • 35
  • 58
avatar AeePlus3
Level 65 : High Grandmaster Hero
16
This is a copy and paste list of commands in minecraft. 

Note- I would bookmark this. It is very useful when building a map. Keep this page open when you are building. Copy and paste commands into your map. Your welcome!


Note - To paste into minecraft you have to hold Ctrl + V in the box where you type the commands.

Note -The commands are in the quotation marks
example = " command "

Note- What you type in the command block looks like this .
example = " /say WHATYOUWANT ".

Note - Must be in creative mode and cheats on to spawn a command block.

Get A Command Block.

Get a command block in 1.7 = " /give PLAYERNAME 137 1 "

Get a command block in 1.8 = " /give @p command_block "

Note -You can name a command block by placing it in anvil.

Minecraft 1.7 Commands.


Set
 Difficulty.

Peaceful = " difficulty 0 "
Easy = " difficulty 1 "
Normal = " difficulty 2 "
Hard =  " difficulty 3 "

Set Gamemode.

Survival to target nearest player  = " gamemode 0 @p "
Survival to target random player  = " gamemode 0 @r "
Survival to target all player  = " gamemode 0 @a "


Creative to target nearest player  = " gamemode 1 @p "
Creative to target random player  = " gamemode 1 @r "
Creative to target all player  = " gamemode 1 @a "


Adventure to target nearest player  = " gamemode 2 @p "
Adventure to target random player  = " gamemode 2 @r "
Adventure to target all player  = " gamemode 2 @a "

Default Gamemode.

Default gamemode survival  = " defaultgamemode survival "
Default gamemode creative   = " defaultgamemode creative "
Default gamemode adventure   = " defaultgamemode adventure "

Command Block Output.

Show command block output = " gamerule commandBlockOutput true "
Nide command block output = " gamerule commandBlockOutput false "

Rain.

Start or stop rain - " toggledownfall "

Set Time.

Set time = "  /time set TIMEINSECONDS

Daylight Cycle.

Turn off daylight cycle = " gamerule doDaylightCycle false "
Turn on daylight cycle = " gamerule doDaylightCycle true "

Weather.

Clear weather = " weather clear TIMEINSECONDS "
Rain weather = " weather rain TIMEINSECONDS "
Thunder weather = " weather thunder TIMEINSECONDS "

Game Rules.

Turn on fire spread = " gamerule doFireTick true "
Turn off fire spread = " gamerule doFireTick false "

Turn on mob drops = " gamerule doMobLoot true "
Turn off mob drops = " gamerule doFireTick false "

Turn on mob spawning = " gamerule doMobSpawning true "
Turn off mob spawning = " gamerule doMobSpawning false "

Turn on mob griefing = " gamerule mobGriefing true "
Turn off mob griefing = " gamerule mobGriefing false "

Keep inventory on = " gamerule keepInventory true "
Keep inventory off = " gamerule keepInventory false "

Turn on natural regeneration = " gamerule naturalRegeneration true " 
Turn off natural regeneration = " gamerule naturalRegeneration false " 

Turn on tile drops = " gamerule doTileDrops true "
Turn off tile drops = " gamerule doTileDrops false "

Set Spawn.

Set spawn point to target nearest player  = " spawnpoint @p X Y Z "
Set spawn point to target random player  = " spawnpoint @r X Y Z "
Set spawn point to target all player  = " spawnpoint @a X Y Z "

Set world spawn point = " setworldspawn X Y Z "

Set Block.

Set block= " /setblock ~ ~ ~ BLOCKID "

Teleport.


Teleport to target nearest player  = " tp @p X Y Z  "
Teleport to target random player  = " tp @r X Y Z "  
Teleport to target all player  = " tp @a X Y Z  "

XP.

Give XP to target nearest player  = " xp AMOUNT @p "
Give XP to target random player  = " xp AMOUNT @r "  
Give XP to target all player  = " xp AMOUNT @a "

Play Sounds.

Play sound to target nearest player  = " /playsound SOUNDID @p "
Play sound to target random player  = " /playsound SOUNDID @r "  
Play sound to target all player  = " /playsound SOUNDID @a "

Minecraft sound id list.

http://www.minecraftforum.net/topic/1880130-all-minecraft-playsound-file-names/  "

Give Items.

Give item to target nearest player  = " /give @p ITEMID QUANTITY  "
Give item to target random player  = " /give @r ITEMID QUANTITY "
Give item to target all player  = " /give @a ITEMID QUANTITY "

Minecraft ID List:
http://minecraft-ids.grahamedgecombe.com/ "

Clear Items.

Clear certain item to target nearest player  = " clear @p ITEM_  "
Clear certain item to target random player  = " clear @r ITEM_ "  
Clear certain item to target all player  = " clear @a ITEM_  "

Clear Inventory.


Clear inventory to target nearest player  = " clear @p  "
Clear inventory to target random player  = " clear @r  "
Clear inventory to target all player  = " clear @a "



Potion ID List.

373 Water Bottle
373:16 Awkward Potion
373:32 Thick Potion
373:64 Mundane Potion
373:8193 Regeneration Potion (0:45)
373:8194 Swiftness Potion (3:00)
373:8195 Fire Resistance Potion (3:00)
373:8196 Poison Potion (0:45)
373:8197 Healing Potion
373:8200 Weakness Potion (1:30)
373:8201 Strength Potion (3:00)
373:8202 Slowness Potion (1:30)
373:8204 Harming Potion
373:8225 Regeneration Potion II (0:22)
373:8226 Swiftness Potion II (1:30)
373:8228 Poison Potion II (0:22)
373:8229 Healing Potion II
373:8233 Strength Potion II (1:30)
373:8236 Harming Potion II
373:8257 Regeneration Potion (2:00)
373:8258 Swiftness Potion (8:00)
373:8259 Fire Resistance Potion (8:00)
373:8260 Poison Potion (2:00)
373:8264 Weakness Potion (4:00)
373:8265 Strength Potion (8:00)
373:8266 Slowness Potion (4:00)
373:16378 Fire Resistance Splash (2:15)
373:16385 Regeneration Splash (0:33)
373:16386 Swiftness Splash (2:15)
373:16388 Poison Splash (0:33)
373:16389 Healing Splash
373:16392 Weakness Splash (1:07)
373:16393 Strength Splash (2:15)
373:16394 Slowness Splash (1:07)
373:16396 Harming Splash
373:16418 Swiftness Splash II (1:07)
373:16420 Poison Splash II (0:16)
373:16421 Healing Splash II
373:16425 Strength Splash II (1:07)
373:16428 Harming Splash II
373:16449 Regeneration Splash (1:30)
373:16450 Swiftness Splash (6:00)
373:16451 Fire Resistance Splash (6:00)
373:16452 Poison Splash (1:30)
373:16456 Weakness Splash (3:00)
373:16457 Strength Splash (6:00)
373:16458 Slowness Splash (3:00)
373:16471 Regeneration Splash II (0:16)


Effects.

Effect Id list:

http://minecraft-helpandinfo.weebly.com/potion-effects-ids.html

Set Effects.


Set effect to target nearest player  = " /effect @p EFFECTID HOWLONG HOWSTRONG "
Set effect to target random player  = " /effect @r EFFECTID HOWLONG HOWSTRONG " 
Set effect to target all player  = " /effect @a EFFECTID HOWLONG HOWSTRONG " 

Clear Effects.

Clear effect to target nearest player  = " /effect @p clear "
Clear effect to target random player  = " /effect @r clear " 
Clear effect to target all player  = " /effect @a clear " 

Spawner.

Spawner command: " /setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:Zombie} "

Summon.


Summon Mobs = "  /summon MOBNAME ~ ~1 ~ "

Summon falling entity = " /summon FallingSand ~ ~1 ~ {TileID:BLOCKID,Time:TIMEYOUWANT}  "


Minecraft mobs and entities id list:

http://minecraft-ids.grahamedgecombe.com/entities "


Enchants.


Enchant to target nearest player  = " /enchant @p ENCHANTID HOWSTRONGLEVEL "
Enchant to target random player  = " /enchant @r ENCHANTID HOWSTRONGLEVEL "
Enchant to target all player  = " /enchant @a ENCHANTID HOWSTRONGLEVEL "


Minecraft enchant id list:

http://minecraft-helpandinfo.weebly.com/enchantment-ids.html "



Say A Message.

Say a message to players = " /say MESSAGE "

Say a message to target nearest player  = " /say @p MESSAGE "
Say a message to target random player  = " /say @r MESSAGE"
Say a message to target all player  = " /say @a MESSAGE "

Tell Raw Commands.


Simple Text.

Simple text to target nearest player = "tellraw @p {'text':'Here your Text'} "
Simple text to target random player = "tellraw @r {'text':'Here your Text'} "
Simple text to target all player = "tellraw @a {'text':'Here your Text'} "

Color Text.

Color text to target nearest player = " tellraw @p {'text':'YOURText','color':'COLORNAME'} "
Color text to target random player = " tellraw @r {'text':'YOURText','color':'COLORNAME'} "
Color text to target all player = " tellraw @a {'text':'YOURText','color':'COLORNAME'} "

Double Color Text.

Double color text = "tellraw @a {'text':'YOURTEXTHERE1','color':'COLORNAME1','extra':[{'text':'YOURTEXTHERE2','color':'COLORNAME2'}]} "

Double Colored Text With Hover Event.

" tellraw @a {'text':'YOURTEXTHERE1','color':'COLORNAME1','extra':[{'text':'YOURTEXTHERE2','color':'COLORNAME2,'hoverEvent':{'action':'show_text'­,'value':'YOURHOVERTEXT'}}]} "

Tell raw command with clickable link

/tellraw @a {text:"WHATYOUWANTTOSAY.",clickEvent:{action:open_url,value:"LINK"}}


Minecraft 1.8 Commands.
Get a command block = " /give @p command_block "
Minecraft ID List: http://minecraft-ids.grahamedgecombe.com/ "

Game modes.

Survival mode = /gamemode 0 "
Creative mode = " /gamemode 1 "
Adventure mode = " /gamemode 2 "
Spectator mode = " /gamemode 3 "

1.8 Commands.

Get a Barrier = " /give @p minecraft:barrier "

Give Item= "  /give @p minecraft:ITEMIDNAME "

Title= " /title @p title {text:"YOURTEXTHERE"} "

Subtitle= " /title @p subtitle {text:"YOURTEXTHERE"} "

Set Block= " /setblock ~ ~ ~ minecraft:BLOCKNAME "

This is for heads= " /give @p skull 1 3 {SkullOwner:"'playername'"} "


Scoreboards 

Note-KILLS WERE USED AS A EXAMPLE. 

The list of stuff you can track in game. = " /scoreboard objectives list " 


Create the objective = " /scoreboard objectives add Kills totalKillCount Stats " 

Display the objective in the sidebar = " /scoreboard objectives setdisplay sidebar Kills " 

Add a scorce to Player = " /scoreboard players add PlAYERNAME Kills 1 " 

Add score to target nearest player = " /scoreboard players add @p Kills 1 " 
Add score to target random player = " /scoreboard players add @r Kills 1 " 
Add score to target all player = " /scoreboard players add @a Kills 1 " 

Remove score board = " /scoreboard objectives remove Kills " 

Add scorce to Player = " /scoreboard players add PlAYERNAME Kills 1 " 

Remove score to target nearest player = " /scoreboard players remove @p Kills 1 " 
Remove score to target random player = " /scoreboard players remove @r Kills 1 " 
Remove score to target all player = " /scoreboard players add @a Kills 1 " 


Dummy scoreboards. 

Create the objective = "/scoreboard objectives NAMEOFSCORE dummy NAMEOFSIDEBAR " 

Display the objective in the sidebar = " /scoreboard objectives setdisplay sidebar NAMEOFDSIDEBAR " 

Add a scorce to Player = " /scoreboard players add PlAYERNAME NAMEOFSCORE 1 " 

Add score to target nearest player = " /scoreboard players add @p NAMEOFSCORE 1 " 
Add score to target random player = " /scoreboard players add @r NAMEOFSCORE 1 " 
Add score to target all player = " /scoreboard players add @a NAMEOFSCORE 1 " 

Remove score to target nearest player = " /scoreboard players remove @p NAMEOFSCORE 1 " 

Remove score to target random player = " /scoreboard players remove @r NAMEOFSCORE 1 " 

Remove score to target all player = " /scoreboard players add @a NAMEOFSCORE 1 " 

Remove score board = " /scoreboard objectives remove NAMEOFSIDEBAR " 

turn on redstone with score = " /scoreboard players test PLAYERTYPE NAMEOFSCORE QUANTITY "

Mob spawner commands.

Zombie spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Zombie} "

Cow spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Cow} "

Spider spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Spider} "

Magma cube spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Magma Cube} "

Skeleton spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Skeleton} "

Zombie Pigman spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Zombie Pigman} "

Chicken spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Chicken} "

Sheep spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Sheep} "

Enderman spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Enderman} "

Creeper spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Creeper} "

Wolf spawner = " /setblock ~ ~-1 ~ minecraft:mob_spawner 0 replace {EntityId:Wolf} "

Server Help Commands.

kick a player = " kick PLAYERNAME "

ban a player = " ban PLAYERNAME "

un ban player = " pardon PLAYERNAME "

ban ip =" ban-ip IPADDRESS "

unban ip = " pardon-ip IP ADDRESS "

OP a player = " op PLAYERNAME "

Un OP a player = " deop PLAYERNAME "

Teleport to player = " tp PLAYER1NAME PLAYER2NAME "

give player items = " give PLAYERNAME ITEMID QUANTITY "

Tell a player a message = " tell PLAYERNAME MESSAGE "

stop server =  " stop "

Save all of the server = " save-all "

Turn off save = " save-off "

Turn on save = " save-on "

Shows list of player online " list "

Say a message to all players " say MESSAGE "


Do you know any commands? leave a comment and ill add it. Thanks.



If there is any errors in my typing tell me and ill fix it.

Dont ask me questions. Im new to command blocks and I don't know that much.

If you know any more commands that are not one the list, leave a comment and ill add it to the list. 


Thanks.
love much

AeePlus3


P.s I would bookmark this. It is very useful when building a map. Keep this page open when you are building. Copy and paste commands into your map. Your welcome!



Bored? Watch some of my youtube videos. Subcribe to see my future creations.

www.youtube.com/aeeplus3


I livestreams sometimes.  Follow to know when i go live.

www.twitch.tv/aeeplus3


follow me on twitter for updates

https://twitter.com/AeePlus3


Tags

19 Update Logs

Update #19 : 12/16/2015 10:37:41 pmDec 16th, 2015

fixed minor typing errors.
LOAD MORE LOGS

1
10/12/2017 11:50 am
Level 1 : New Miner
Cyborg3
/testfor "@p, @r,@a, @e" (only one letter & @ symbol that i know of per block) [r=#] (replace the "#" with any number) I make automatic doors with "/testfor @p [r=3]"
1
04/05/2017 2:18 pm
Level 7 : Apprentice Network
Dat360Wheatley
Now we need 1.11.2 command plsss
1
09/26/2016 2:56 pm
Level 5 : Apprentice Explorer
XxxDddEr56
thanks man
1
06/08/2016 12:23 am
Level 7 : Apprentice Architect
the artistic magican
/give @p diamond_sword 1 0 {ench:[{id:16,lvl100}]}
1
03/12/2016 2:31 pm
Level 1 : New Miner
TheGhost_2001
AeePlus3 what about the /say command because it is not in your list
1
02/28/2016 8:43 pm
Level 39 : Artisan Dragon
Xeno_Dragon
When I use /setworldspawn it sets the spawn randomly in the general area of the coordinates, but not the actual cordinates them selves.
1
04/01/2016 4:10 pm
Level 7 : Apprentice Warrior
Minimemyth
Thats because of World spawn radius its auto set to 10 but in 1.9 you can change it
1
04/01/2016 4:15 pm
Level 39 : Artisan Dragon
Xeno_Dragon
What about in earllier versions like 1.7.10?
1
04/03/2016 8:12 am
Level 7 : Apprentice Warrior
Minimemyth
Only 1.9 from what i know you can test it though
1
01/31/2016 1:50 am
Level 1 : New Miner
EINSTEIN_007
Do someone know if its possible to make something happen random?
1
01/31/2016 1:46 am
Level 1 : New Miner
EINSTEIN_007
U forgot one command. (Sorry for my bad English )
If player has at least X level, do this = "testfor @p(or @r or @a)[lm=any level]"
And "testfor @p(or @a or @r)[m=-1 or 0 or 1 or 2]
That is if a player has gamemod -1, 0, 1 or 2
1
01/16/2016 3:41 pm
Level 1 : New Miner
larsek
<br data-mce-bogus="1">kokokoko euro spoko piłka leci hen wysoko
1
10/27/2015 9:37 am
Level 13 : Journeyman Skinner
Falcon_Phoenix
Thank you for this commands! Now I could do maps with commands!! :D
1
10/01/2015 1:18 pm
Level 1 : New Miner
awecoolness
is there a command that  turns a chest plate into  a thing that makes u go really fast
1
01/05/2016 6:39 pm
Level 13 : Journeyman Engineer
SkillsPlays
That is using custom enchantments.
Search a tutorial online, most preferably YouTube.
1
08/16/2015 2:03 pm
Level 1 : New Miner
minecraft1735
how to clear mob from new world in minecraft
1
08/01/2015 6:16 pm
Level 1 : New Miner
Pixelfin
I'm having trouble with my title command.

I entered into a command block:"/title @a times 10 100 5"

I then put another command block next to it with this command: "/title @a title {text:"test",color:red}"

It gave me this error: "Invalid json: Malformed JSON at line 1 column 3"

What do I do?
1
08/01/2015 1:19 am
Level 5 : Apprentice Mage
II_DragonKing_II
Dude this makes it much easier. Thanks for putting it in a Understandable way!
1
07/21/2015 1:16 pm
Level 1 : New Miner
Benim3
awesome thanx
1
06/29/2015 10:28 pm
Level 16 : Journeyman Explorer
Minecraft_Ozelot
tried /gamerule mobgriefing false but it didnt work. its said it did but monsters stil attaked me. HELP
1
07/13/2015 12:39 am
Level 65 : High Grandmaster Hero
AeePlus3
it might be case sensitive.

/gamerule mobGriefing false
1
07/21/2015 6:34 am
Level 1 : New Miner
Stan_Lee_Excelsior
'gamerule mobGrifing false ' Stops mobs destroying the environment, so creepers.
1
06/29/2015 10:21 pm
Level 16 : Journeyman Explorer
Minecraft_Ozelot
This is for heads: /give @p skull 1 3 {SkullOwner:"'playername'"}
1
07/13/2015 12:42 am
Level 65 : High Grandmaster Hero
AeePlus3
added thanks.
1
06/12/2015 5:00 pm
Level 7 : Apprentice Archer
IceMantis73
Is there a gamerule that allows players to negate fall damage?
1
03/22/2015 11:52 am
Level 15 : Journeyman Network
[SWE]Slime1255
the setspawn dosent work butt the oder things work perfect
1
02/07/2015 8:14 pm
Level 14 : Journeyman Mage
SolarWind
Dude, seriously, you didn't need to do this. Minecraft Gamepedia explains this really well. Nice job though. :P
1
02/08/2015 3:14 pm
Level 65 : High Grandmaster Hero
AeePlus3
this is easyer to read and more useful.
1
01/29/2015 9:42 am
Level 3 : Apprentice Miner
iiZerkahh
Also how do I add colour to the /title @p title {text:"Test"}
1
01/29/2015 7:47 pm
Level 65 : High Grandmaster Hero
AeePlus3
/title @a title{text:"Add Title",color:"Add Color"}

your welcome mate.
1
06/27/2015 10:08 am
Level 19 : Journeyman Miner
+pasupatidasi
when i do it it's just white, no change to the color.
1
03/17/2015 10:25 am
Level 3 : Apprentice Miner
iiZerkahh
Thanks mate, Sorry for the long reply, Not been on planet minecraft for a while :p
1
01/29/2015 9:41 am
Level 3 : Apprentice Miner
iiZerkahh
Thanks bro, It helped me with the titles and the other things with it, Thanks alot.
1
12/17/2014 4:12 pm
Level 1 : New Miner
JeffreyFromPCHihi
What command for manuadd to a group?
1
11/24/2014 8:10 pm
Level 49 : Master Dragon
Dralyona
Missing scoreboard commands
1
10/18/2014 9:30 am
Level 40 : Master Architect
ASAS1NSS
Man , where are the serious commands and NBT datas ?
1
10/30/2014 8:29 pm
Level 65 : High Grandmaster Hero
AeePlus3
i dont know what that is.
1
08/23/2015 10:15 pm
Level 1 : New Crafter
AngelOwl
NBT DATA is basically the data of the block that is unique for that specific block. For example, a chest without nbt data is an empty chest, but one with nbt data has different specific things in it. If you hold control while holding down pick block, you will get that block with nbt data. (For example, instead of placing down multiple signs with the same thing on them and having to type them up, simply hold ctrl + pick block and place down all the signs)
By the way, I don't know that much about NBT data sooo... Don;t take it fromme.
Oh, and please add /clone!!!
xox, 
   -AngelOwl
P.S: Sorry for the late response!
1
09/30/2014 4:05 pm
Level 26 : Expert Blockhead
BaconandBacon
Thanks a lot! That helped a lot! :)
1
10/30/2014 8:30 pm
Level 65 : High Grandmaster Hero
AeePlus3
your welcome.
1
09/19/2014 7:24 am
Level 1 : New Explorer
laugexd
Lol turn off mob drops doFireTick false XD
1
09/11/2014 4:46 pm
Level 65 : High Grandmaster Hero
AeePlus3
i just started adding 1.8 commands. when i learn more and it works. ill add new commands.
1
06/27/2014 4:49 pm
Level 47 : Master Wizard
epicanthony76
you might want to update /give PLAYERNAME command_block 1 because minecraft 1.8  is using the name as the ID instead of the number
1
08/06/2014 1:11 am
Level 35 : Artisan Archer
Roccod23
/\
1
06/11/2014 10:44 pm
Level 65 : High Grandmaster Hero
AeePlus3
anybody know anymore commands?
1
06/28/2014 1:46 am
Level 22 : Expert Dolphin
When will I be back
Scoreboard? For ex: /scoreboard objectives add totalKillCount  totalKillCount Kills - /scoreboard objectives setdisplay sidebar totalKillCount
1
06/05/2014 7:14 am
Level 9 : Apprentice Network
iPwnedYou
Thanks m8.
1
03/02/2015 10:28 pm
Level 4 : Apprentice Crafter
The ender mine
I can make my testill bold too.
Pretty Lame how you think we don't know how to do it Cool.
1
06/07/2014 1:15 am
Level 65 : High Grandmaster Hero
AeePlus3
your welcome.
1
04/20/2014 5:13 pm
Level 46 : Master Nerd
fluous
"/time set"
"/setblock ~ ~ ~ BLOCKID"
Oh. And also in "/summon" it doesn't have to be mob. It can be entity like falling sand "/summon FallingSand ~ ~ ~ {TileID:BLOCKID}
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome