You can also get a temporary "X-Ray Vision" effect by eating a carrot or drinking an X-ray Vision Potion , which highlights mobs through walls.