Move Villagers
Rural inhabitants are not as lazy as they might seem. As you’ve likely noticed, they are always bustling about. If you’re looking for an easy method to manage these unruly villagers, then the mod Move Villagers is exactly what you need! This Move Villagers mod allows you to attach leashes to village residents and lead them around. You can also tie them to fences just like horses. While it may not appear very humane, if your goal is to gather all those wayward villagers in one spot, this approach is indeed practical and cost-effective!
Use a leash on a villager (just as you would with horses) to secure it around their neck. Once you’ve leashed the villager, they will follow you until you detach them or tie them to a fence.
Click on a fence block to tie the villager to it. Although it’s not the most humane way to interact with someone, it’s effective when you want to prevent them from wandering off.