
The obstacle course ends in a chamber with blue gems and a golden sarcophagus. Pick up a gem of your own before following the other players toward the minecart.
Watch for the passage
Taking a gem starts the collapse. As the sarcophagus sinks, look around the chamber for a sliding door. The opening reveals the Collector and a minecart. Head through while you still have room overhead.
Source: Jailbreak Wiki on the treasure room and minecart, Jailbreak Wiki on the Tomb Gem
Duck on the ride out
Board the cart and look down the track. When a low wooden beam approaches, press E on keyboard or tap the duck prompt on mobile. Keep watching for the next beam until the cart reaches one of the mine exits.
Sources
Interfaces and rules can change. Check the official pages above for current requirements.