It could be as simple as the chest revealing some sort of tucked-in cannon that shoots at you when you get close.
Hmm why not just have trapped chests that beep for a second and then just detonate... no treasure just boom.
or why just a cannon? UNAUTHORIZED ACCESS DETECTED QUARANTINE FAILURE INITIALIZING TERMINATION (warning nuclear launch detected)