Try using lists for loot.

I've tested whether this builds. I haven't used the YAML stuff before, so I might have made a weird type conversion error due to the awkward unchecked types that it returns.

Seeing as you had a list in the YAML anyway, I figured you should read it as a list instead of a map.