This is currently gamebreaking. Unlike your original intent you can pull orange / legendary out of barrels, boxes, crates, etc.

I liked what you originally intended for the mod which is big chests should give big loot. Barrels and boxes? Not so much...