How to do a crate loot command in minecraft?

Pl
1

Does anyone know how to do a crate loot command in minecraft?

Co

/ setblock ~ ~ ~ chest {LootTable: "chests / simple_dungeon"} replace

There are also other loot tables, just do some research in the Minecraft wiki:

https://minecraft.gamepedia.com/...Chest_loot