What accessories are you using? I find that charm of myths/philosophers' stone with cross necklace/star veil really increases your survivability. A shield and wings are a must too. And if you are still using the gatligator I would recommend using crystal bullets.(plantera is rather large, almost all the shards will hit him on a good shot)