What are these critters in Minecraft with crossbows?

Po
4

Hi, I just played Minecraft (have been playing it for a long time)

And I have my house on an island. I was farming in a canyon for a while and then came back to the island. There were a bit apart from the house 2 beings (servants if I remember correctly) holding the crossbows in their hands and one of them has a flag. They didn't move until I attacked them. After they are gone I have an effect or have one where I don't know what he's doing. What are the names of the critters and why did it have a flag? And why do I have the effect? I'm already looking forward to your answers

Pr

This is a village raid. So when you're near a village, they come and attack. However, they can also spawn somewhere (through a bug). You have to defend the village (if there's one) and drink milk after the attack for the effect to go away

Po

Ok thanks, but the effect doesn't matter?

Pr

I believe (not sure) that the effect increases the chance of another raid if you go to another village

Po

Okay it can be good because when I explored the regions next to mine with the effect somehow 3 raids in a row