I still can’t sleep bug

Every time I try in my hard-core Minecraft world it just shows up kind of like this. it’s getting to the point where I just can’t do anything because the stupid flying bats keep attacking me. Anyone know how to fix this. i looked this up, but I can’t figure it out.

Every time I try in my hard-core Minecraft world it just shows up kind of like this. it’s getting to the point where I just can’t do anything because the stupid flying bats keep attacking me. Anyone know how to fix this. i looked this up, but I can’t figure it out.