I’m trying to create an item that can break certain blocks, but also has a colored name in 1.13.2
Here’s the command I’m using.
/give iAugust minecraft:shears{display:{Name:"[{\"text\":\"Arcane Shears\",\"color\":\"aqua\",\"italic\":false,\"bold\":false}]CanDestroy:[minecraft:iron_bars]"}}
But it only has a colored name, and it can’t break specific blocks.
Answer
You can add multiple tags (or properties) when giving yourself an item. If you are familiar with JSON it is very similar to that.
In this example CanPlaceOn:["minecraft:melon_block"]
and display:{Name:"Box"}
are tags, you can add multiple tags to an item by separating it with a comma.
Therefore you can spawn the item using the following:
/give @p jukebox 1 0 {CanPlaceOn:["minecraft:melon_block"],display:{Name:"Box"}}
Attribution
Source : Link , Question Author : user230402 , Answer Author : Synchro