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
addedFood consumable for 1.21.2 with effects
addedDecorated Pots
addedUpdated food to consumable for 1.21.2, still has some issues with effects
addedUpdated attribute names for 1.21.2
addedSuspicious Blocks
patchHide 1.20.5 item display features for previous versions
patchForce format attribute values as numbers
Read version history »
(71 More Updates)