Minecraft Blogs / Tutorial

Useful Commands for MapMakers [XDLOL is back][Updated to 1.9]

  • 19,183 views, 0 today
  • 35
  • 16
  • 63
Level 31 : Artisan Ninja
Want to create an awesome command block contraption map for your adventure? game map? horror map? or RPG map?

Then you have come to the right blog! Here, I will show you some useful commands for your maps!

No AI villager! (No AI means, super passive, statue-like, silent)
/summon Villager ~ ~ ~ {Profession: 1,CustomName: "NAME",CustomNameVisible: 1,Career: 1,CareerLevel: 42,CanPickUpLoot: 0,PersistenceRequired: 1,NoAI: 1,Silent: 1,Invulnerable: 1,Attributes: [{Name: "generic.knockbackResistance",Base: "1000f"},{Name: "generic.movementSpeed",Base: "0f"},{Name: "generic.maxHealth",Base: 99999}]}

Silent Mobs!
/entitydata @e[type=ENTITYNAME] {Silent:1}

*Now those villagers will never annoy you agan!
Want to have a real astronaut head gear?
/replaceitem entity @p slot.armor.head glass

*You can also put them in zombies, pigman, skeleton, wither skeleton
*slot.armor.weapon(the thing that they are holding DUH)
Armor Stand!
*Just put commas if you want to change the armor stand in just one command. LIKE: /entitydata @e[type=ArmorStand,r=5] {ShowArms:1,NoBasePlate:1}

/entitydata @e[type=ArmorStand,r=5] {ShowArms:1}
*/entitydata @e[type=ArmorStand,r=5]

Armor Stand does great in your maps like City maps because they can represent as people, mannequin(For malls' clothing store) etc.

Note: if you are having troubles, or asking for a command for your map, just comment below and i will answer it! because the armor stand is a bit complicated

Drops an item
/summon Item ~ ~ ~ {Item:{id:iron_axe,Count:1}
Drops an item with a name plate! (14w21b ONLY)
/summon Item ~ ~ ~ {Item:{id:command_block,Count:1},CustomName:XDLOL Loves Me!,CustomNameVisible:1}
Drops an UNPICKABLE item
/summon Item ~ ~ ~ {Item:{id:diamond_sword,Count:1},PickupDelay:-100}

Mob With Custom Armor! (Works on skeletons,zombies)
summon Zombie X Y Z {Equipment:[{id:137},{id:404},{id:331},{id:154},{Damage:3,id:397,tag:{SkullOwner:"MHF_Herobrine"}}}]}
Specific Location Player Detector
/testfor @a[X,Y,Z]
Note: You don't need a pressure plate in this command! You must place a redstone clock to trigger this command.
Supply Chest! (Great for wars,survival and many more!)
/summon FallingSand ~ ~2 ~ {TileID:54,Time:1,DropItem:0,TileEntityData:{Items:[{Slot:13,id:276,Count:1,Damage:0}]}}
Chest with Lock (1.8 only!)
/setblock ~ ~ ~ chest{Lock:"Key"}
1. Place a chest
2. Type the command: /blockdata ~ ~ ~ {Lock:"Key"}
Colored text:
/tellraw @p {"text":"Dark Red","color":"dark_red"}

Note: If you want to put space between the words, put a qoutation marks at the beginning and at the end of the text.
Server-like chat (I mean one chat message, 2 or more colors!)
/tellraw @a {'text':'YOURTEXTHERE1','color':'COLORNAME1','extra':[{'text':'YOURTEXTHERE2','color':'COLORNAME2'}]}

tellraw @a {'text':'YOURTEXTHERE1','color':'COLORNAME1','extra':[{'text':'YOURTEXTHERE2','color':'COLORNAME2'},{'text':'YOURTEXTHERE3','color':'COLORNAME3'}]}

Did you get that? if you want to add ANOTHER COLOR just ADD (INCLUDE THE COMMA!): ,{'text':'YOURTEXTHERE','color':'COLORNAME'}
For 1.8 only! (Adventure)
/give @p redstone_block 16 0 {CanPlaceOn:["minecraft:command_block"]}
/give @p iron_pickaxe 16 0 {CanDestroy:["minecraft:diamond_block"]}
Item with custom name and description/Lore
/give @p minecraft:diamond_block 1 0 {display:{Name:"Precious Block",Lore:["My precious!"]}}
Mob with custom speed
/summon creeper ~ ~ ~ {Attributes:[{Name:generic.movementSpeed,Base:0.001}]}

Note: 0.001 makes the mob nonmoving mob. And 10 makes the mob very fast mob
Awesome Idea: You can make a Villager that is nonmoving, perfect for quest maps!
Custom spawner
/setblock ~ ~ ~ mob_spawner {EntityId:Skeleton,SpawnData:{SkeletonType:1}} <----- Wither Skeleton
/setblock ~ ~ ~ mob_spawner {EntityId:ozelot} <------ Ocelot
Sword with Custom damage
/give @p diamond_sword 1 0

Note: If you want to change the damage, change the Amount value (The one beside the "generic.attackDamage")
Clickable Message
/tellraw @a {"text":"<Herobrine> ","extra":[{"text":"If you dare,
click ---> HERE
<---","clickEvent":{"action":"run_command","value":"/tp @a ~ ~1000000

Note: That Example is for PRANKERS only! But it can be also used for a game map like, question and answer.
Villager with Custom Trade
/summon Villager ~-2 ~0 ~0


Whuppin Stick}}}}]}}

Note: You can remove the enchantment tags.
/effect @p 1 <-------Speed
/effect @p 2 <-------Slowness
/effect @p 3 <-------Haste
/effect @p 4 <-------Mining Fatigue
/effect @p 5 <-------Strength
6 Instant Health
7 Instant Damage
8 Jump Boost
9 Nausea
10 regeneration
11 resistance
12 fire resistance
13 water breathing
14 invisibility
15 blindness
16 night vision
17 hunger
18 weakness
19 poison
20 wither
21 health boost
22 absorption
23 saturation

/effect @p clear <------ clears all effects
For Horror only /playsound random.portal.portal @p and /playsound fireworks.twinkle_far and /playsound mob.endermen.stare

You can find the lists of sounds in the %appdata%/.minecraft/minecraft
launcher and find the uninstall file (The config settings file) remove
the .ogg to play the sound
Selected Slot Detector 1.8 Command!
/testfor @p {Inventory:[{tag:{display:{Name:"Diamond"}},Slot:0b}],SelectedItemSlot:0}

Note: You can place 9 command blocks with different Slot, so that it can detect all of the player's hotbar.
Note: You need to place a redstone clock to use this command!
Awesome Idea: You can rename it "Torch" instead of "Diamond", and place a comparator, after the comparator place a command block that commands /effect @p clear. (Supposing the player has INFINITE blindness effect) Great for scary games like slender!
Keep Inventory
/gamerule keepInventory true
Silent Command Block
/gamerule commandBlockOutput false
Tile Drops
/gamerule doTileDrops

Awesome Idea: Great gamerule for spleef, prison break mini-games and MANY MORE!
Scoreboard Commands!
Add an Objective!
/scoreboard objectives add <Code Name> <Criteria type> [Display Name]
Different Kinds of criterion
The score can be update by commands ONLY!
Player get points everytime they die
Player get points everytime they kill a player
Player get points everytime they kill both player and mob
It shows the CURRENT health points of players
Remove an Objective!
/scoreboard objectives remove <Code Name>
Display A Scoreboard!
/scoreboard objectives setdisplay sidebar <Code Name>
Reset Score!
/scoreboard players reset <Player>
Add a Score! (dummy criteria only!)
/scoreboard players add <Player> <Objective name> <Amount>
/title @p <title:subtitle> <message>

Ex. /title XDLOL title Dungeon-1
Title: Colored text
title @a title {text:"XDLOL",color:red,bold:true,extra:[{text:"is",color:black},{text:"AWESOME!",color:gold}]}


title @a title {text:"Salas Lair",color:red} <----- Looks like a boss battle!!! (BTW, Salas is a boss from Destinia, try that game! It is awesome)

Not so complicated commands (For command newbies!) (UNFINISHED!)
Argument Help
/help (Number 1-4)
Gives an Item
/give (playername) (itemname) (amount) (durabilitytaken)
/clone (x1) (y1) (z1) (x2) (y2) (z2) (x) (y) (z)

xxx 1.) you got to record the COORDINATES of the blue x (You must place the coordinates in the xyz1)
xxx 2.) next, record the COORDINATES of the black x (You must place the coordinates n the xyz2)
3.) last, place the coordinates in which do you want to be cloned. (the xyz)
/fill (x1) (y1) (z1) (x2) (y2) (z2) (blockid)

This command is also like the fill command. The thing is, it needs a blockid. ex: /fil 0 1 0 0 4 10 command_block
Easy as (x+4y)(x+y) nah I am just kidding XD
/summon (entity) (x) (y) (z)

Units that have different entity name:
Mooshroom: Mushroom_Cow
Ocelot: Ozelot
Pigman: Zombie_Pig OR Pig_Zombie (one of these must be right, and the other one is wrong)
Magma Cube Lava_Slime
Wither: WitherBoss
Ender Dragon: EnderDragon
Iron Golem: VillagerGolem
Snow Golem: SnowMan
Horse: EntityHorse

Thats all folks!

And feel free to tell me that a command didn't go well or you need a command that is not stated here.

And you can also comment some awesome mini-games here so that I will try to do it :D

Tutorial By: XDLOL

undefinedLeave a Diamond!
undefinedFavorite this!
undefinedSubscribe Me!


12 Update Logs

Twelfth Update [IM BACK-er] : by XDLOL 04/22/2016 9:27:01 amApr 22nd, 2016

Added only one 1.9 command :) Im tired of this shit Haha

Create an account or sign in to comment.

10/08/2017 12:56 pm
Level 59 : Grandmaster Cowboy
BlocklyCow avatar
10/28/2016 7:38 pm
Level 25 : Expert Nerd
GamerGeekedSB avatar
Some commands don't work in 1.9 but work in 1.8?
08/13/2016 5:50 am
Level 2 : Apprentice Skinner
123456789ree avatar
Hi, so I have seen a lot of maps with armor stands or like buttons with writing above them(I dont know how to explain it sorry) and I was just wondering if you know the command for it or if its any of these.
05/01/2016 1:22 pm
Level 1 : New Network
Builderboy426 avatar
Been A While since I've seen this... You sure have updated the list! Check out my newest map "The Space In Time: Modern Day"! I am trying my best and these command will help a lot, thank you!
05/18/2016 11:04 pm
Level 31 : Artisan Ninja
XDLOL avatar
It may be my last update on this because I am currently building a map. The map will be out before June and I guarantee that :) I will love to play your map if it is ready for download. Sorry for the late reply tho
06/11/2016 10:01 am
Level 1 : New Network
Builderboy426 avatar
Yah about that the computer I was making it on is now currently broken and sorry for the long time it took me to reply I has been a while since I have been on this website. So Now I have to work on the map all over again.
04/25/2016 7:59 am
Level 3 : Apprentice Miner
GamingPugs101 avatar
How do You Make The Armor Stands Wave?
04/26/2016 11:42 pm
Level 31 : Artisan Ninja
XDLOL avatar
Keep exploring the Armor Stands command in this blog. Experiment the poses. And I think It takes 5 command blocks to make it wave or so
Planet Minecraft


© 2010 - 2023