I managed to make a tardis after hours of deaths and mining. I go inside and isntantly die because there are so many mobs inside my tardis. I cant even move inside it to try and kill them. What can i do?

Ps. Sometimes it will transfer me to the end. I'm not sure why, so if your answer can include that as well, it would be much appreciated.