One half of my 4th wisdom tooth is ready out and the rest of it is coming in what can I do for the pain or keep it from hurting when I eat?

See dentist. When a wisdom tooth is partially erupted and there is a flap of tissue over part of it, you are at risk of getting food debris stuck under the tissue and starting an infection. It will take a dentist to treat this. Meanwhile ibuprophen for pain. Soft diet will help. Keep as clean as possible. Rinse with salt water or listerine. Use water pic if you have one.
I would even bypass. The dentist, which dr. Eleczko recommended, and have a consult with an oral and maxillofacial surgeon. The dentist will be referring you to an oral surgeon anyhow for this impaction.