There are three distinct types of I wish /(If only) sentences
Regrets with Past Perfect
I wish I hadnt got so angry
I wish I hadnt got grunk and kissed Samantha
Waiting changefor the present or future with Past Simple
I wish I had enough money to go to Mozambique this summer
I wish I didnt have to go to your nephews wedding
Complaints with would + infinitive
I wish you wouldnt arrive so late all the time.