Once you pass a certain radius, if you're standing on ore and there's a certain amount of ore around you, you take damage. This check increases in area and the damage increases for each successive check.
It's a pretty wonky calculation and it's not really intended for single player.