If you focus on it, I think you'll notice, that the difference between pain and pleasure is mostly cognitive. The signal, the feeling, isn't what "hurts" or feels "good".

The thing that "hurts" is the involuntary psychological reaction, the scrambling of the mind, every module in your brain blames the other for the new state of affairs. This disorder is a form of entropy.