It can be very difficult, but it's possible. Trust me on this. I once reached 6 months without pmo, couple of years ago before I joined NoFap. There's no need to beat yourself up for making mistakes. We all make mistakes.
Here are some things that you can do:
Write down some goals that you want and keep yourself busy with 'em.
Do you have any books? If so, read some of them. If you feel like you have nothing to do at your home, there's always a time to grab an important book and read.
Go outside. Hang out with some of your friends. Talk to them. You can also find a real club to join. Or you can volunteer on helping feeding homeless people, giving street dogs a home, or helping washing people's cars. And you go for a hike as well, have a walk to a forest, mountain, or a river near you. That can help your mind feeling relaxed.
If you don't have a job, then what are you waiting for? That can be the best way tokeep yourself very busy, and it may helpyou earn some money.
I don't know if you like videogames. If you do, you can spend time playing a good game that you like. Try not to play a game that can contain sexual backrounds, because that can feed the urge to fap. So, be careful on that. Unless you don't play videogames, no need to worry about that. I don't blame you.
Go to a gym. Work out. Eat as healthy as possible. Go for a run. It'll boost your testosterone high and help you be fit and feeling strong. Don't forget to drink water though, every day. Play a sport, dude. That can make you very active and busy. You can feel very energetic when you play a sport.
Meditate every day. Seriously, you have to do this. It can help you remain very calm and clear your mind all the time. Find a spot somewhere comfortable and quiet, so then you can start training your mind. Back and spine straight.
Do you have a bike? If so, go out for a ride of your life. Get it fixed. Fill their tires, add oil on their chains, and you're ready to go to ride freely like a happy bird. If you don't have one, then go buy one (unless you don't have enough money).
Block porn sites if you keep on relapsing. Seriously, it's the best option to make. If you have the tendency to watch porn and fap, move your computer to where people can see you.
Play an instrument. It's never too late to learn new stuff. Whichever instrument you want to learn how to play, go to aschool, practice, get yourself auditionedfor any musical band. That's another best option to be busy.
Well, I'm out of options. I hope all these help. Now remember, whatever failure you reach, don't let it destroy you, use it as a stepping stone. Like I said, we all make mistakes, and mistakes are meant to be learned from to be smarter. We'll be always here for you everytime. You have my big support. Be strong.
And please, excuse my bad grammar. I don't talk very often.