So im trying to build an underground fortress as my bank world. I've built an area big enough so that if i stand in the middle of the fortress I can only see the outlining walls of what i have built. The problem stems from having enemies that are able to teleport past walls or just go right through them entirely. In hardmode if I go towards the outer walls enemies attack me through the walls and i have to constantly be on my gaurd. I want a place where I dont have to worry about being attacked specially in a bank world where I am organizing and finding stuff or creating stuff.
How much of an underground area must be removed and rebuilt to stop mobs from spawning?