Minecraft : Barrels, Chests, Shulkerbox Give Command Generator

Loading
Page

Try the Commands Troubleshooting and Help page if you get stuff with server errors.

Minecraft Prefilled Containers Generator

A prefilled chest generator that sets the contents for chests, shulker boxes, barrels, hoppers and more. Give a full shulker box or setblock a chest with items.

Shulker Boxes: Can be given and also use setblock. Custom name works for the set block version.

Bundles: Slot isn't part of the command and is removed in the final output. It can be useful whilst creating the command to sort items.

Chests: And other non-shulker box containers can only used with setblock and not given with preset item contents.

Contents: Chests, shulkers boxes, hoppers, dispensers (and the reset) can have preset items in their inventory. Choose contents items to preset inventory, loot items require a special lootable in json format.

Lock: Used for adventure mode. When the lock tag is set it prevents the container from being opened unless the opener is holding an item whose name matches this string.

LootTable and LootTableSeed: Loot tables follow the json format. They are used on setblock and to be used to fill the chest when it is next opened. The optional LootTableSeed can be used to have results work out similar to how world seeds.

Minecarts: Unfortunately chest minecarts and hopper minecarts don't seem to work with setblock in Minecraft.

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

7 Feb 2025
minecraft/command-generator 2.19.3

patchAdded item_name to all for rich text
patchAdded armor trim bolt, missed that one somehow

30 Jan 2025
minecraft/command-generator 2.19.2

patchSummon firework missing count 1 for 1.20.4 and earlier
patchSome consume tags should still be food tags

16 Jan 2025
minecraft/command-generator 2.19.1

addedFlow template to armor trim generator

12 Dec 2024
minecraft/command-generator 2.19

addedSuspicious Stew
addedBundles to container generator
patch1.21.4 signs
patch1.21.4 suspicious blocks
patchPredicates generation for, can destroy, can replace


Read version history »
(78 More Updates)