As it digs through the ground, it absorbs many hard objects. This is what makes its body so solid.
There is a magnet in its brain that prevents an ONIX from losing direction while tunneling. As it grows older, its body becomes steadily rounder and smoother.