How to keep my villagers from being massacred and wiped out?

20-Dec-2022

How to keep my villagers from being massacred and wiped out?

I haven't played minecraft since like forever… You could be woken up with a zombie attacking you in bed. Long time. So much new stuff.

I'm playing on hard mode and I've started 2 different worlds trying to make my castle near an inhabited village.

The first time pillagers wiped them all out and on the second map zombies kept spawning in the town and killing them no matter how many walls and lights I made.

What can I do if anything?