JavaSwitch edition using the selector in the header.
Quick templates
Target — where the loot goes
Target type
Player selector
Source — where the loot comes from
Source type
Loot table ID
/loot give @s loot minecraft:chests/dungeonQuick templates
Target — where the loot goes
Source — where the loot comes from
/loot give @s loot minecraft:chests/dungeon