Focus on how rad it will feel to land the trick instead of how frustrating it is to fuck it up.
The BA thing: just visualize how it would feel to do it and go at it like I’ve done it before.
Break up my attempts at the trick by doing easier tricks or doing the trick on something easier just to not get into a mode where I’m used to bailing. Like, if I’m trying to kickflip a gap, I’ll do a few flatground kickflips or ollie the gap, or if I’m trying a tough ledge trick, I’ll break up the tries with a 5050 or a nose slide or something. Keeps the spirits up, keeps you feeling good about doing what you are doing. Spending hours upon hours trying and failing on the same trick can be spirit crushing.