Pummel on the face of a wall you can't dig with your bare hands
and eventually you will find handholds there, allowing you to
climb.
This will hopefully provide an immersive alternative to /stuck
for getting out of pits, which will also make players have to
carefully extricate themselves from their situations instead of
just using /stuck to bail and then running home to come back
with supplies.