Not that painkiller but eSport as pain killer worked for me. Can't sleep because of a teeth and no pain killer drug at home? Lap for an hour at some circuit on my PS and fall asleep at least a little bit. Then pay a visit to the dentist :-)
Maybe this is somewhat related to the subject of the post: detach consciousness from what I am doing and the pain gets a little detached too. However I doubt it would work with serious levels of pain.
It does, there is some very promessing studies on patient that suffer massive body burn ( most of their skin is gone )
The traditional approch is pain killers and some meditation.
VR helps a lot.
On two front : it distract your brain and it can teach you how to reach that distracted from the pain state by yourself.
My understanding is that a large pourcentage of the neurons are specialized in image processing. And that keeping those busy with exploring a VR world avoid to have those neurons re-assign to ponder about pain.
Maybe this is somewhat related to the subject of the post: detach consciousness from what I am doing and the pain gets a little detached too. However I doubt it would work with serious levels of pain.