Minecraft wiki entry for Bat, associated text: Bats hang upside down on the underside of a solid block when idle, though they cannot hang on transparent or non-solid blocks. If a player approaches a bat hanging upside down, even if the player is invisible, it flies away. This also happens if the player breaks the block the bat is hanging from.