When a chest is broken in Minecraft how is the location of the dropped items determined?
I've noticed in particular that if you place a block above a chest and then break the chest, it sometimes launches items far away rather than dropping the item at its feet like when there is no block above.
Further, if you surround a chest on all sides except one, fill it with some items, and then break it, it sometimes launches items through one of the solid sides.
For reference, I am using 1.10.
For context, I am trying to design a "cage" (https://imgur.com/a/DTiEj) around a chest for a particular multiplayer server I'm playing on that lets people trade items in their hand for items in the chest by punching it. So I want people to be able to see the chest, but if they break it I don't want them to be able to get what's inside without also having to break some obsidian. However, when I break the chest sometimes items appear outside of the cage rather than falling into the space below, which defeats the point of my defenses.