Try the Commands Troubleshooting and Help page if you get stuff with server errors.
Decorated Pots
Create a command to give players a decorated pot with preset set sherd decoration. Set extra options for name, lore and more. When a decorated pot is broken it will also drop any pottery sherds and bricks used to craft it. It will also drop an item if it has one. The initial release had no command options for adding items. Item and loot table options were added soon after the initial release.
Sherds Command
The sherds command option is a mixed list of 4 sherds, and bricks. This sets the pattern along with the associated sherd and brick item drops.
/give @p decorated_pot[pot_decorations=[burn_pottery_sherd,heartbreak_pottery_sherd,brick,miner_pottery_sherd]] 1 /give @p decorated_pot{BlockEntityTag:{sherds:[burn_pottery_sherd,brick,shelter_pottery_sherd,prize_pottery_sherd]}} 1
Contains Item Command
The initial release had no command options for adding an item. The item can also include tag data and a count.
/give @p decorated_pot[container=[{item:{id:cake,count:1},slot:0}]] 1
Loot Table Command
The initial release had no command options for adding a loot table item. The loot table will select an item from the loot table.
/give @p decorated_pot[block_entity_data={id:decorated_pot,LootTable:"chests/buried_treasure"}] 1
Minecraft Versions Permalinks
If you find yourself using a particular version all the time, you can link directly. There is some crossover between versions, so there will be quirks.
Version History
patchgive 1.21.4 equipment model field has been renamed to asset_id
patchforce paste in rich text editor, maybe
patchwritten book page import click and hover events not rimporting
patch1.21.5+ text and lore empty array json
patchgive, can place and can break rules to use blocks for the search list
patchgive, updated 1.21.5+ hide additional tooltip
patch1.21.5 give command attribute modifiers ids require quotes
addedparticle generator pale_oak_leaves, tinted_leaves
added1.21.5 items
patchrich text had issues with quotes and backslashes
patch1.21.5 written books on click got to page
addedInitial snapshot for 1.21.5
Read version history »
(82 More Updates)