Onix has a magnet in its brain. It acts as a compass so that this Pokémon does not lose direction while it is tunneling. As it grows older, its body becomes increasingly rounder and smoother.
As it grows, the stone portions of its body harden to become similar to a diamond, but colored black.