Minecraft Blogs / Other

5uperTrinity's Commands Book [1.11 Friendly]

  • 32,427 views, 2 today
  • 40
  • 23
  • 39
5uperTrinity's Avatar 5uperTrinity
Level 71 : Legendary Hero
My Commands Book

Here I will update all commands I come across that seem interesting.
All commands on this page are free for all to use.

If you are looking for a command, press [CTRL + F] to search for it!


*New* TP Player with a specific score:
/tp @p[score_Kills=1,score_Kills_min=1] ~ ~ ~

*New* Kill players with a certain amount of health:
/kill @a[score_health_min=1,score_health=1]

*New* Test for player's health:
/testfor @p[score_health_min=1,score_health=1]
(add scoreboard first: /scoreboard objectives add health Health)

*New* No pickup delay:
/entitydata @e[type=Item] {PickupDelay:0b}

*New* Summon mob with no item drops:
/summon Creeper ~ ~1 ~ {DeathLootTable:"minecraft:empty"}

*New* Test for player's score on scoreboard:
/scoreboard players test TotalTasks Tasks 10 10

*New* Summon fireworks on players:
/execute @a ~ ~ ~ summon FireworksRocketEntity ~ ~1 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:1703767,9895897],FadeColors:[2137661,16187297]}]}}},Passengers:[{id:"FireworksRocketEntity",FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:{Type:0,Colors:7904511,12560639,16758246],FadeColors:[5101055,16732124,16765266]}]}}}}]}

*New* Give player a score when they're in an area:
/scoreboard players set @p[x=-219,y=64,z=236,dx=5,dy=5,dz=5] score 1

*New* Kill named entity:
/kill @e[type=ArmorStand,name=Bill]

Scoreboard for crafting item, adds 1 score when you craft the item:

/scoreboard objectives add CraftingTable stat.craftItem.minecraft.crafting_table

Setblock under random entity:

/execute @r[type=ArmorStand,name=Jimmy,c=1] ~ ~ ~ /setblock ~ ~-2 ~ redstone_block
(C=Count, if it was 2 then it would put 1 redstone block under 2 armor stands)

Test for specific item in player's inventory:
/testfor @p {Inventory:[{id:"minecraft:stonebrick",Damage:3s}]}
(3=Chiseled Stone Bricks)

Replace armor slots with colored armor with custom name and lore:
/replaceitem entity @p slot.armor.head leather_helmet 1 0 {display:{color:16777215,Name:"Player 4",Lore:["Wear this to become Player 4!"],Unbreakable:1}}

Replace armor slots with colored armor:
/replaceitem entity @p slot.armor.head leather_helmet 1 0 {display:{color:4304440}}

Replace armor slots:
/replaceitem entity @p slot.armor.head diamond_helmet 1 0

Display Floating item (colored armor)
/summon Item ~ ~ ~ {PickupDelay:32767,Age:-32768,Item:{id:"leather_chestplate",Count:1,tag:{display:{color:9843760}}}}

Particle Trails (team scoreboard)
/execute @p[team=Lava] ~ ~ ~ /particle lava ~ ~ ~ 0.2 0.1 0.2 0.1 1 force

Test for entity at location:
/testfor @e[x=10,y=78,z=69,r=0,type=ArmorStand]

Setblock relative to armorstand:
/execute @e[type=ArmorStand] ~ ~ ~ /setblock ~ ~5 ~ stone

Control the speed of a minecart:
/entitydata @e[type=minecart] {Motion:[0.5f,0f,0f]]

Get rid of current scoreboard display:
/scoreboard objectives setdisplay sidebar

Floating blocks:
/summon ArmorStand ~ ~ ~ {Invisible:1,NoGravity:1,Equipment:[{},{},{},{},{id:stained_hardened_clay,Damage:1}]}
(Change damage to get different types of clay, or change to a completely different block like quartz_block)

Replace player's hotbar slot with an item:
/replaceitem entity @p slot.hotbar.0 minecraft:stone
(Hotbar = 0-8)

Unbreakable helmet with custom color, name and lore:
/summon Item ~ ~ ~ {Item:{id:298,Count:1,tag:{display:{color:9843760,Name:"P1",Lore:["Wear this to become Player 1!","Gain the Control Book!"]},Unbreakable:1}}}

One Heart Helmet:
/give @a minecraft:leather_helmet 1 0 {AttributeModifiers:

Display Floating Item:
/summon Item ~ ~ ~ {PickupDelay:32767,Age:-32768,Item:{id:"leather_chestplate",Count:1}}

Setblock Spawner with mob:
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:Sheep}

Awesome particle command:
/summon FireworksRocketEntity -1.50 77 6.50 {LifeTime:-10,FireworksItem:{id:401,tag:{Fireworks:{Explosions:[{Flicker:0,Type:1,Colors:5190175]}]}}}}

Tellraw Link:
/tellraw @a {text:"Type Here",color:aqua,bold:false,underlined:true,clickEvent:{action:open_url,value:"Link Here"}}

Test for block under player and turn it into another block:
/execute @e[type=Player] ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 0 execute @p ~ ~ ~ /setblock ~ ~-1 ~ stained_hardened_clay 2

Teleport nearby armorstand to the middle of a block:
/tp @e[type=ArmorStand,r=2] ~0.5 ~0.0 ~0.0

Test for player at coord in a radius:
/testfor @p[x=3,y=3,z=3,r=3]

Display floating blocks:
/summon MinecartRideable ~ ~ ~1 {CustomDisplayTile:1,DisplayTile:1,DisplayOffset:45}

Test for an item with rotation in an item frame:
/testfor @e[type=ItemFrame] {TileX:0,TileY:0,TileZ:0,Facing:0b,ItemRotation:0b,Item:{id:minecraft:diamond_sword}}

Team Scoreboards:
/scoreboard teams add Red
/scoreboard objectives setdisplay sidebar Score
/scoreboard players add Team Score 1
/scoreboard teams join Red @p
/scoreboard teams option Red color red

Tellraw with @p/@a/@r - Detects score:
/tellraw @a ["",{"selector":"@pscore_Score_min=5]"},{"text":" has won the game!","color":"gold"}]

Floating Player head with name:
/summon ArmorStand ~ ~ ~ {CustomName:"Intrepid.",CustomNameVisible:1,Invisible:1,Invulnerable:1,NoBasePlate:1,PersistenceRequired:1,Equipment:[{},{},{},{},{id:skull,Damage:3,Count:1,tag:{SkullOwner:5uperTrinity}}]}

Floating text using armor stands:
/summon ArmorStand ~ ~1 ~ {CustomName:"Play",CustomNameVisible:1,Small:1,Invisible:1,Invulnerable:1,NoBasePlate:1}

Spreadplayers with an armorstand:

/spreadplayers 4 136 0 10 false @e[type=ArmorStand,score_NewRand_min=1]
(0 is default, 4 and 36 are the middle of the square area, and 10 is the range)

Huge invisible blocks/items:
/summon Giant ~ ~ ~3 {CustomName:"Dinnerbone",CustomNameVisible:0,Equipment:[{id:stone,Count:1},{},{},{},{}],DropChances:[0.0F,0.085F,0.085F,0.085F,0.085F],Invulnerable:1,PersistenceRequired:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:1,Duration:1999980,ShowParticles:0b}]}

Summon mob in minecart:
/summon Villager ~ ~ ~ {CustomName:"Villager",CustomNameVisible:1,Profession:0,Invulnerable:1,Rotation:[70f,8f],Riding:{id:"MinecartRideable",CustomName:"VillagerCart",CustomNameVisible:1}}

Detect if people right click carrot on a stick:
/scoreboard objectives add CarrotOnStick stat.useItem.minecraft.carrot_on_a_stick

Give an entity a score:
/scoreboard players set @e[type=Villager] Example 1

Interactive Book Text:
/give @p minecraft:written_book 1 0 {author:"Jimmy",title:"Book 1",pages:["{text:\"Hello!\",bold:\"true\",color:\"black\",clickEvent:{action:\"run_command\",value:\"/say Hello!\"}}"]}

Interactive Chat Text:
/tellraw @a {"text":"","extra":[{"text":"Click here to teleport!","color":"gold","clickEvent":{"action":"run_command","value":"/tp @p ~ ~5 ~"}}]}

Place a custom head with rotation:
/setblock ~ ~ ~ skull 1 replace {ExtraType:5uperTrinity,SkullType:3,Rot:16}
(Rot is the rotation: 16 - 31)

Summon a minecart that doesn't need a rail:
/summon MinecartRideable ~0 ~0 ~0

Minecarts that kill you:
/execute @e[type=MinecartRideable,name=Evil] ~ ~ ~ /effect @p[r=0] 7 10 0 true

Clickable Colored Signs:
/setblock ~ ~3 ~ minecraft:wall_sign 2 replace {Text1:"{text:\
"This is Line 1\"}",Text2:"{text:\"This is Line 2\",color:dark_red}"
,Text3:"{text:\"This is Line 3\",color:dark_blue,clickEvent:{action
:run_command,value:\"/say Hello"}}"}

Scoreboard Stuff:
/scoreboard objectives add [name for objective] [objective] [display name]
/scoreboard objectives setdisplay [display location] [name for objective]
/scoreboard players add/remove @p [name for objective] [amount]
/scoreboard players set @p [name for objective] [amount]
/scoreboard players reset @a

Playsound to a player with a specific score:
/playsound random.explode @p[score_Example=0] ~ ~ ~ 1.0 1.0 1.0

Testfor/kill a mob/entity:
/testfor @e[type=XPOrb]

Test for player with an exact amount of levels:
/testfor @a[l=8,lm=8]

Test for player with more than the specified number of levels:
/testfor @a[lm=5]

Colored subtitle/title with @p:
/title @p subtitle {"text":"","extra":[{"text":"Thank you for your participation, ","color":"blue"},{selector:"@p",color:"aqua"}]}

Give all players some XP:
/xp 1 @a

Set off primed TNT:
/summon PrimedTnt ~ ~ ~ {Fuse:1}

Message a player with a specific score:
/tellraw @p[score_Example=0] {"text":"Hello"}

Test for playing with an exact score:
/testfor @p[score_Score=3,score_Score_min=3]

TP player to a location while looking in a direction:
/tp @p ~ ~ ~ h v
(Horizontal Rotation & Vertical Rotation)

Kill entity within a range:
/kill @e[r=5,type=Item]

No fall damage:
/effect @a 8 100 255 true

Test for the minumum/maximum of a score:
/testfor @a[score_Score_min=10]

Set block relative to a player:
/execute @p ~ ~ ~ setblock ~ ~ ~ minecraft:stone

Replace a block with another block within an area:
/fill ~ ~ ~ ~ ~ ~ stone 0 replace air 0

Test for item on ground at coords in a radius:
/testfor @e[x,y,z,r,type=Item] {Item:{id:minecraft:stone}}

Test for item on ground:
/testfor @e[type=Item] {Item:{id:minecraft:stone}}

Teleportation Effect:
/particle witchMagic ~1 ~3 ~ 0 1 0 0.2 1000

Particle Explosion:
/particle smoke ~10 ~3 ~ 0 10 0 1 10000

Line of smoke (Particle):
/particle cloud ~ ~3 ~ 0 10 0 0.02 100
(100 = amount of particles)
(0.02 = speed)

Test for player's gamemode:
/testfor @a[m=0]

Test for fishing rod's hook in ground:
/testfor @e[name=unknown] {inGround:1b}

TP player to fishing rod's hook:
/tp @p @e[name=unknown]

Summon Lightning:
/summon LightningBolt ~ ~ ~

Summon Supercharged Creeper:
/summon Creeper ~ ~1 ~ {powered:1}

Summon Shooting Fireball:
/summon Fireball ~ ~ ~ {direction:[0.0,0.0,0.0],ExplosionPower:10}

Test for Arrow in ground:
/testfor @e[type=Arrow] {inGround:1b}

Test for mob with custom name:
/testfor @e[type=Chicken,name=Jimmy]

Test for colored armor:
/testfor @a {Inventory:[{id:minecraft:leather_chestplate,Slot:102b,tag:{display:{color:0}}}]}

Test for gamemode:
/testfor @a[r=1000,m=1]

Clickable Chat Text:
/tellraw @a {"text":"[Warning] ","extra":[{"text":"Are you sure you want
to go into creative mode? Click HERE if yes!","clickEvent":{"action":"
run_command","value":"/gamemode c"}}]}

Playsound Music Disks:
/playsound records.far @a ~ ~ ~ 1.0 1.0 1.0

Clickable Link:
/tellraw @a {text:"Click to check out the page!",color:gold,bold:true,underlined:true,clickEvent:{action:open_url,value:"INSERT LINK HERE"}}

Take away XP levels:

/xp -5L @p

Test for playing with custom named item:
/testfor @p[r=1000] {Inventory:[{tag:{display:{Name:"Ice Blade"}}}]}

Summon Item:
/summon Item ~ ~ ~ {Item:{Count:1, id:4}}

*Updated* Destroy item on ground:
/scoreboard players tag @e[type=Item] add KillMe {Item:{id:minecraft:gold_nugget}}
/kill @e[tag=KillMe]
(There is no 1 command to get rid of a specific item on the ground. Put the two above commands on a redstone clock instead)

Test for item on ground:
/testfor @e[type=Item] {Item:{id:minecraft:stone}}


/clone x y z x y z x y z masked

Fill clock:
Upper Command: /fill ~0 ~-1 ~0 ~+0 ~-1 ~0 redstone_block
Middle: Redstone Block
Bottom Command: /fill ~0 ~+1 ~0 ~+0 ~+1 ~0 stone

Test within a radius:
/testfor @p[x,y,z,r=1]

Test within a square area:
/testfor @p[x=-219,y=64,z=236,dx=5,dy=5,dz=5]

Test for what block player is standing on:
/execute @e[type=Player] ~ ~ ~ detect ~ ~-1 ~ minecraft:iron_block 0

Change chests contents:

/blockdata ~ ~ ~ {Items:[{id:276,Count:1,Slot:13}]}

Clear chests contents:
/blockdata ~ ~ ~ {Items:[]}

Lock chest:
/blockdata ~ ~ ~ {Lock:"TEST"}

Change chest custom name:
/blockdata ~ ~ ~ {CustomName:"Hello"}

Hopper fast transfer:
/blockdata ~ ~ ~ {TransferCooldown:0}

Summon item frame with/without an item:
/summon ItemFrame ~ ~1~ {TileX:-~,TileY:~,TileZ:~,Direction:0,It­em:{id:1,Count:1},ItemRotation:0}

Invisible armor stand with custom head:
/summon ArmorStand ~ ~ ~ {Invisible:1b,Equipment:[{},{},{},{},{id:"skull",Count:1b,Damage:3b,tag:{SkullOwner:"5uperTrinity"}}]}

Block in a minecart (Use offset to make floating blocks):
/summon MinecartRideable ~ ~ ~ {CustomDisplayTile:1,DisplayTile:4,DisplayOffset:0}

Mob in a minecart:
/summon Villager ~ ~ ~ {Riding:{id:"MinecartRideable"}}

Explosive Sheep in a minecart:
/summon Creeper ~ ~ ~ {ActiveEffects:[{Id:14,Duration:999999,Ambient:1}],Riding:{id:Sheep,Riding:{id:"MinecartRideable"}}}

Explosive Sheep:
/summon Creeper ~ ~ ~ {ActiveEffects:[{Id:14,Duration:999999,Ambient:1}],Riding:{id:Sheep}}

Test if chest has nothing:
/testforblock ~ ~ ~ minecraft:chest 5 {items:[]}

Test for arrow on a block:
/testfor @e[x=0,y=0,z=0,r=1,type=Arrow]

Chicken in minecart:
/summon Minecart ~ ~1 ~ {Riding:{id:Chicken}}

Spawn colored sheep:
/summon Sheep ~ ~ ~ {Color:4}

Turn off command output:
/blockdata ~ ~ ~ {SuccessCount:0}

Testforblock (Different types of blocks - Wool/Quartz):
/testforblock ~ ~ ~ minecraft:wool 4

Test for pressed button:
/testforblock ~ ~ ~ minecraft:wooden_button 11

Mobs that can't move:
/summon Sheep ~ ~ ~ {Attributes:[{Name:generic.movementSpeed,Base:0.001}]}

Custom Head on Mobs:
/summon Skeleton ~ ~ ~ {Equipment:[{},{},{},{},{Damage:3,id:397­,tag:{SkullOwner:"Name"}}]}

Kill Certain entity within range:
/kill @e[r=50,type=Chicken]

Custom Head:
/give @p minecraft:skull 1 3 {SkullOwner:"5uperTrinity"}

Floating Text:
/summon WitherSkull ~ ~ ~ {direction:[0.0,0.0,0.0],ExplosionPower:­0,CustomName:"A Map by:",CustomNameVisible:true}

Command to kill a mob:
/kill @e[type=Sheep]

Unbreakable Tools:
/give @a minecraft:diamond_shovel 1 0 {Unbreakable:1}

Unbreakable tool with custom name, lore, and enchantments:
/give @p minecraft:diamond_shovel 1 0 {Unbreakable:1,display:{Name:"God's Shovel",Lore:[It was stolen from God himself, a powerful get unbreakable shovel!]},ench:[{id:16,lvl:2,id:32,lvl:5}]}

Unbreakable tool that can break 1 block - With custom name, lore, and enchantments:
/give @p minecraft:diamond_shovel 1 0 {CanDestroy:["minecraft:gravel"],Unbreakable:1,display:{Name:"God's Shovel",Lore:[It was stolen from God himself, a powerful get unbreakable shovel!]},ench:[{id:16,lvl:2,id:32,lvl:5}]}

Tool that can break 1 block:
/give @p minecraft:golden_shovel 1 0 {CanDestroy:["minecraft:sand"]}

Unbreakable item with lore:
/give @p minecraft:diamond_sword 1 0 {Unbreakable:1,display:{Name:"Sword",Lore:[It's... Nice.]},ench:[{id:16,lvl:1}]}

Item with LORE and enchantment:
/give @p minecraft:diamond_sword 1 0 {display:{Name:"Sword",Lore:[It's... Nice.]},ench:[{id:16,lvl:1}]}

Item with lore:
/give @p minecraft:diamond_sword 1 0 {display:{Name:"Sword",Lore:[It's... Nice.]}}

Block that can be placed on 1 block:
/give @p minecraft:wool 1 0 {CanPlaceOn:[minecraft:quartz_block]}

Spawn Command Block with Commands:
/setblock ~ ~ ~ command_block 1 replace {Command:"/say hello"}

/title @p title {text:"Hello",color:white}

/title @p subtitle {text:"Hello",color:white}

/playsound random.explode @a ~ ~ ~ 1.0 1.0 1.0
(Volume, pitch, minimum volume)

Test for a players minimum/maximum level:
/testfor @p[l=(level max),lm=(level minimum)]

Custom Named Mob:
/summon Zombie ~ ~ ~ {CustomNameVisible:1,CustomNameVisible:1,CustomName:Evil}

Clear an item the player has:
/clear @p minecraft:writable_book

Test for an item the player has in his inventory within a radius:
/testfor @p[r=10] {Inventory:[{id:"minecraft:gold"}]}

Test for an item the player his in his active slot within a radius:
Item in active slot: /testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,­id:"minecraft:diamond_sword"}]­}

Test for an item with a custom name in the active slot within a radius:
/testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,­tag:{display:{Name:"Ice Blade"}}}]}

Test for an item the player has in his inventory:
Item in inventory: /testfor @p[r=10] {Inventory:[{id:"minecraft:diamond_sword"}]}

Tellraw command with two colors:
/tellraw @p {color:red,text:"[Person] ",extra:[{color:gold,text:"Hello"}]}

/setblock ~ ~ ~ minecraft:quartz_block 2

Summon button on the side of a block:
/setblock ~ ~ ~ minecraft:wooden_button 4

Spawn sign with text:
/setblock ~ ~ ~ minecraft:wall_sign 2 replace {Text1:Hello I am,Text2:Jim. It was,Text3:I who killed,Text4:that man.}

Spawn item in item frame:
/summon ItemFrame ~ ~ ~ {TileX:-622,TileY:63,TileZ:873,Facing:1,Item:{id:iron_sword,Count:1}}

Give a book with words in it:
/give @p written_book 1 0 {title:"Put title here",author:"Put author here",pages:["Put writing here"]}

Custom name item that can be placed on 1 block:
/summon Item ~ ~ ~ {Item:{id:wooden_button,Count:1,tag:{CanPlaceOn:["minecraft:gold_block"],HideFlags:
16,display:{Name:"Place me on the Gold Block!"}}}}

Block that can be placed on 1 block:
/give @p minecraft:dirt 1 0 {CanPlaceOn:[minecraft:quartz_block]}

Test for a block:
/testforblock ~ ~ ~ minecraft:stone

Care Package:
/summon FallingSand ~ ~20 ~ {TileID:54,Data:1,Time:1,TileEntityData:{Items:[{id:276,Slot:0,Count:1}]}}

Falling Sand Entity:
/summon FallingSand ~ ~20 ~ {TileID:54,Data:1,Time:1}

Color leather armor:
/give @p minecraft:leather_helmet 1 0 {display:{color:9843760}}

/give @p minecraft:leather_helmet 1 0 {display:{color:14384446}}

/give @p minecraft:leather_helmet 1 0 {display:{color:11642407}}

/give @p minecraft:leather_helmet 1 0 {display:{color:4304440}}

/give @p minecraft:leather_helmet 1 0 {display:{color:7047881}}

/give @p minecraft:leather_helmet 1 0 {display:{color:8273333}}

/give @p minecraft:leather_helmet 1 0 {display:{color:11751612}}

/give @p minecraft:leather_helmet 1 0 {display:{color:5190175}}

/give @p minecraft:leather_helmet 1 0 {display:{color:4210752}}

/give @p minecraft:leather_helmet 1 0 {display:{color:1644054}}

Useful Links:

Create custom armor stands:

Block/Item ID list:

Mob/Entity ID list:

Potion Calculator:

/Playsound list:

30 Update Logs

Update #30 : by 5uperTrinity 06/06/2016 1:54:24 amJun 6th, 2016

-Added 9 new commands!

Create an account or sign in to comment.

12/16/2017 5:46 pm
Level 55 : Grandmaster Birb
chickenpants93's Avatar
just learned how to put stuff in my left hand. "thanks"
09/03/2017 5:29 pm
Level 1 : New Miner
TheMasterNubbles's Avatar
I put it in a minecraft book here you go you can thank me later pastebin.com/wqUnV5Em
06/19/2016 10:27 am
Level 1 : New Miner
Darkcreeper55's Avatar
so is there a bug with the clicable sign text cause the code thats on
this page does not work at all it just says unknown error occured while
running this command and places down an empty sign
06/08/2016 1:05 am
Level 57 : Grandmaster Engineer
shanewolf38's Avatar
04/06/2016 12:39 pm
Level 1 : New Network
jaypawcc's Avatar
update to 1.9?
04/06/2016 7:57 pm
Level 71 : Legendary Hero
5uperTrinity's Avatar
All of them work in 1.9 except the tellraw and playsound commands. I'll update it soon.
12/27/2015 1:57 pm
Level 2 : Apprentice Explorer
shadowkiller344's Avatar
12/27/2015 10:10 am
Level 59 : Grandmaster Meme
CroatiaTheMan's Avatar
Epic Command Book :D
12/07/2015 1:16 pm
Level 20 : Expert Artist
Avenz's Avatar
Not useless : I like this one : /scoreboard objectives add CarrotOnStick stat.useItem.minecraft.carrot_on_a_stick (super cool)
10/09/2015 6:33 pm
Level 1 : New Network
jaypawcc's Avatar
hey superT is there a command for testing within a radius and tping in one command if so please update
Planet Minecraft


© 2010 - 2024