I have found the Solution it was something in my inventory because i was playing on a server i killed myself but when anybody went near my body they crashed due to the entities but after a while the entities disappeared then everything was back to working order. I don't know what item was...