I was going to replace the loot for certain structures with loot generates event but I'm struggling with a good way to know what structure they are in. Area doesn't seem to cover structures nor could I find something similar for structures with my searches.
I thought to check using find_structure but when testing in singleplayer to find the ranges it can extend up to ~600 blocks for many chests, and thats a huge area to be replacing loot in. Anything I can do to better achieve this or at least narrow down the replacement?