Period Cramps

Phanice
Guys, I have a question. I have awful cramps when my period arrives. I was prescribed 800 mg ibuprofen but I'm not really trying to take meds so often. Does anyone know if changing my eating habits will alter my period experience?