Command to give a prefilled chest of items?

Command to give a prefilled chest of items? - Cheerful crop African American female owner giving treat to Labrador Retriever while teaching commands in park

How do I /give a chest that has items already inside of it? I know you can do it because of mcDungeon, but I can't seem to get it to work whenever I try it myself.

Minecraft version 1.9.4.






Pictures about "Command to give a prefilled chest of items?"

Command to give a prefilled chest of items? - Dog giving paw to anonymous person
Command to give a prefilled chest of items? - Girl with a Phrase on her T-shirt
Command to give a prefilled chest of items? - Light Inside Chest Box



How do you make a prefilled chest in Minecraft?

This Prefilled Chest Generator creates the Minecraft Java Edition (PC/Mac) 1.18 command you can use to give a player a chest, trapped chest or shulker box filled with up to 27 items inside (including enchanted items). Choose from either the /give or /setblock command.



Minecraft: How to get Pre-filled Chests, Dispensers, etc. with (+NBT) Data - Tutorial




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Samson Katt, Leon Natan, Karolina Grabowska, David Bartus