Minecraft wiki entry for Villager, associated text: Before the first raid wave in Java Edition, at least one villager rushes to ring the bell in the center of the village (if they are close enough) to warn the other villagers of an incoming raid before going into their house. In Bedrock Edition, the bell rings automatically regardless of whether a villager is nearby. In Java Edition, when a bell is rung, all illagers within 48 blocks get the glowing effect for 3 seconds.