Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Some interesting commands to play with the new NBT support for items.

Items with custom name

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

Items with enchantments

give sho gold_sword 1 {ench:[{id:9s,lvl:2s}]}

Unbreakable items

give sho diamond_sword 1 {display:{Name:"§r§6§lEPIC SWORD"},Unbreakable:1}

Items that can only break specific blocks

give sho diamond_shovel 1 {CanDestroy:["grass"]}

Blocks that can only be placed on specific blocks

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

Default sign text

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

Chest with names

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

Chest with items inside

give sho 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 sho chest 1 {display:{Name:"§lLocked Chest"},BlockEntityTag:{Lock:"My Secret Key",Items:[{id:264,Count:64,Slot:0}]}}
give sho paper 1 {display:{Name:"My Secret Key"}}

Recursive chest

give sho 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"]}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}}]}}
@DiamondGoldPack

This comment has been minimized.

Copy link

@DiamondGoldPack DiamondGoldPack commented Jan 17, 2016

Joshua

@DiamondGoldPack

This comment has been minimized.

Copy link

@DiamondGoldPack DiamondGoldPack commented Jan 17, 2016

DiamondGoldPack

@DiamondGoldPack

This comment has been minimized.

Copy link

@DiamondGoldPack DiamondGoldPack commented Jan 17, 2016

Jj

@thebigsmileXD

This comment has been minimized.

Copy link

@thebigsmileXD thebigsmileXD commented Jan 27, 2016

👍 This is really useful. Thanks for adding it.

@haniokasai

This comment has been minimized.

Copy link

@haniokasai haniokasai commented Jan 30, 2016

very useful :)

@BullGames1001

This comment has been minimized.

Copy link

@BullGames1001 BullGames1001 commented Feb 25, 2016

so cool!

@luke109

This comment has been minimized.

Copy link

@luke109 luke109 commented Mar 4, 2016

Hi

@luke109

This comment has been minimized.

Copy link

@luke109 luke109 commented Mar 4, 2016

Woowowowowoowowowowoowowowoowowow

@DeathRaven359

This comment has been minimized.

Copy link

@DeathRaven359 DeathRaven359 commented Mar 6, 2016

This will be so cool as a VoteReward!

You give someone an enchanted, named, and locked chest with all the voting loots!

Genius

@iProgramMC

This comment has been minimized.

Copy link

@iProgramMC iProgramMC commented Mar 8, 2016

Plz give me a link in Google play to download it plzplz

@TuanBoyz

This comment has been minimized.

Copy link

@TuanBoyz TuanBoyz commented Apr 10, 2016

What ia sho? Wtf

@TuanBoyz

This comment has been minimized.

Copy link

@TuanBoyz TuanBoyz commented Apr 10, 2016

And how To Make it ahhh
ITS hard

@Jiang2542

This comment has been minimized.

Copy link

@Jiang2542 Jiang2542 commented Jun 16, 2016

U alive!

@DannyTheDestoyer

This comment has been minimized.

Copy link

@DannyTheDestoyer DannyTheDestoyer commented Jun 20, 2016

It is like a ender chest

@EpicWizard

This comment has been minimized.

Copy link

@EpicWizard EpicWizard commented Jul 29, 2016

I CAN DO IT BUT ITS NOT IN MY INVENTOREY

@YepDoritosYT

This comment has been minimized.

Copy link

@YepDoritosYT YepDoritosYT commented Aug 7, 2016

YA YA ITS DORITOS YEA YEA YA

@Tolo0

This comment has been minimized.

Copy link

@Tolo0 Tolo0 commented Jan 30, 2017

Is it possible to give a sword with 3 enchantments and a name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.