Minecraft Blogs / Tutorial

1.7 and 1.8 Command List.

  • 486,891 views, 91 today
  • 45
  • 41
  • 58
AeePlus3's Avatar AeePlus3
Level 67 : High Grandmaster Hero
19
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 : by AeePlus3 12/16/2015 10:37:41 pmDec 16th, 2015

fixed minor typing errors.
LOAD MORE LOGS

Create an account or sign in to comment.

1
10/12/2017 11:50 am
Level 1 : New Miner
Cyborg3
Cyborg3's Avatar
/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
Dat360Wheatley's Avatar
Now we need 1.11.2 command plsss
1
09/26/2016 2:56 pm
Level 5 : Apprentice Explorer
XxxDddEr56
XxxDddEr56's Avatar
thanks man
1
06/08/2016 12:23 am
Level 7 : Apprentice Architect
the artistic magican
the artistic magican's Avatar
/give @p diamond_sword 1 0 {ench:[{id:16,lvl100}]}
1
03/12/2016 2:31 pm
Level 1 : New Miner
TheGhost_2001
TheGhost_2001's Avatar
AeePlus3 what about the /say command because it is not in your list
1
02/28/2016 8:43 pm
Level 41 : Master Dragon
Xeno_Dragon
Xeno_Dragon's Avatar
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 8 : Apprentice Warrior
Minimemyth
Minimemyth's Avatar
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 41 : Master Dragon
Xeno_Dragon
Xeno_Dragon's Avatar
What about in earllier versions like 1.7.10?
1
04/03/2016 8:12 am
Level 8 : Apprentice Warrior
Minimemyth
Minimemyth's Avatar
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
EINSTEIN_007's Avatar
Do someone know if its possible to make something happen random?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome