>>10912567Occupy your mind with other things
First off, go to the gym if you aren't already lifting.
Being physically fit will help you become mentally fit in order to break your habit.
Find a hobby, like playing an instrument, learning to draw, learning something with which you can create.