Skip to content

Instantly share code, notes, and snippets.

@jasonw4331
Forked from shoghicp/commands.md
Last active April 1, 2017 20:15
Show Gist options
  • Save jasonw4331/1333db7216701b6e5dd20ab38148441a to your computer and use it in GitHub Desktop.
Save jasonw4331/1333db7216701b6e5dd20ab38148441a to your computer and use it in GitHub Desktop.
Some interesting commands to play with item NBT.

Items with custom name

give jasonwynn10 stick 1 {display:{Name:"§r§6§lNormal stick"}}

Items with enchantments

give jasonwynn10 stick 1 {ench:[{id:12s,lvl:10s}]}

Items with name and enchant

give jasonwynn10 stick 1 {display:{Name:"§eTHE POWER"},ench:[{id:12s,lvl:50s}]}

Unbreakable items

give jasonwynn10 diamond_sword 1 {display:{Name:"§a§lJason's God Sword"},Unbreakable:1,ench:[{id:9s,lvl:10s},{id:13s,lvl:10s},{id:10s,lvl:10s},{id:12s,lvl:50s}]}

Items that can only break specific blocks

give jasonwynn10 diamond_shovel 1 {CanDestroy:["grass","sand"]}

Blocks that can only be placed on specific blocks

give jasonwynn10 wool:6 64 {CanPlaceOn:["dirt"]}

Default sign text

give jasonwynn10 sign 16 {display:{Name:"§6§lPLACE ME!"},BlockEntityTag:{Text1:"CUSTOM TEXT",Text2:"----------------",Text3:"I can have",Text4:"default text!"}}

Chest with names

give jasonwynn10 chest 1 {display:{Name:"§lChest of Wonders"}}

Chest with items inside

give jasonwynn10 chest 1 {display:{Name:"§rSuspicious Chest"},BlockEntityTag:{Items:[{id:7,Count:64,Slot:0,display:{Name:"FEEL THE POWER!"}}]}}

Lock chests with a key

give jasonwynn10 chest 1 {display:{Name:"§lLocked Chest"},BlockEntityTag:{Lock:"My Secret Key",Items:[{id:264,Count:64,Slot:0}]}}
give jasonwynn10 paper 1 {display:{Name:"My Secret Key"}}

Recursive chest

give jasonwynn10 chest 1 {display:{Name:"§rHeavy Chest"},BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:54,Count:1,Slot:0,tag:{BlockEntityTag:{Items:[{id:7,Count:1,Slot:0,tag:{display:{Name:"I can only be placed on bedrock"},CanPlaceOn:["bedrock"]}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment