This puzzle is one-dimensional, primarily based on greed, but you can introduce other "sins" as needed -- sloth, lust, gluttony, etc. For the purposes of this encounter, I would rule that Detect Magic works, but Identify does not.
The room is full of "treasure," but no door. Lust might involve...