I've been trying to build a house for a long time, but bats keep coming in. What do I have to do to make them go away (Minecraft)?

Li
2

In Minecraft I always have the problem that so many bats come into my house and I can't get them away. What do I have to do to make them go away?

Cu

Where are you building your house?

El

Bats spawn when it is too dark and below height 63 … So better illuminate or build higher…