Here's a piece of code that can be used to show it:
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("serveraction", "serveraction") function serveraction(id, action) local list = entitylist() for x, y in pairs(list) do parse("spawnitem 73 " .. x .. " " .. y) end end