Minecraft Commands – Using the DecorItem Data Tag: Complete Instructions

minecraft-commandsminecraft-java-edition

While attempting to use the new Llama data tags in Minecraft 1.11, i was confused upon GamePedia's description of the {DecorItem} tag. Can anyone explain the valid values? I am unsure of the valid input, but my guesses are block IDs or byte inputs determining the variant.

Best Answer

The DecorItem tag is a compound holding item data for the item within the llama's "decoration" slot, highlighted here:

Llama inventory screen, decorative item (red carpet) to the left

While the decorative appearance on the llama itself requires the item to be any type of carpet, using commands you may insert any item at all into the slot:

/summon minecraft:llama ~ ~1 ~ {Tame:1b,DecorItem:{id:"minecraft:stone",Count:1b}}

Llama inventory screen, decorative item (stone) to the left