A chest that when clicked on pops up a gui that has 4 "inventory" slots. When the proper combination is input, the chest opens and grants access to the treasure within.
If items are more difficult, a number system where 4 numbers are entered is also okay.