As many wise quitters on this forum have said, there are 10,000 things you can do when you’re feeling bored, anxious or angry, but just one thing you can’t - stick something in your mouth and set it on fire. Just take smoking off the table and you’ll go far!
I used to keep a running Honey-Do list of small tasks that needed attention around the house. Nothing herculean, just little fiddly stuff to keep my hands and mind occupied when a craving hit. Things like wiping out the recycling bins, tightening a loose drawer pull, tossing out expired stuff from the back of the fridge. My favorite was “speed weeding” dashing outside to a flower bed, yanking weeds furiously for 5 min, then dashing inside again. The neighbors thought I was nuts, but I kept that quit!