Keep villagers out of your house without iron doors. This mod lets you define a zone around your house that keeps villagers away and forces them to leave your beds and workstations alone.
- Villagers walk around your zone instead of through it
- Beds and workstation blocks within a zone cannot be claimed
- Villagers inside the zone are teleported out
- Optional height limit for the zone to accommodate basements or individual floors
- Each player has their own zones
- Server-side only: players joining the server do not need the mod to use it
- Mobs affected by the zone are configurable: zombie villagers, iron golems and wandering traders
- Install Fabric Loader 0.18.4 or newer for Minecraft 26.1–26.3.
- Put Eviction Notice and Fabric API in your mods folder.
- For a server, only the server needs it.
Warning
Villagers that lose their workstation to a zone also lose their profession if you haven't traded with them yet, the same as breaking the workstation in vanilla.
| Command | What it does |
|---|---|
/eviction set <name> <radius> [yMin] [yMax] |
Creates a zone centred on you |
/eviction list |
Lists your zones |
/eviction here |
Shows if you're standing in one of your zones |
/eviction remove <name> |
Deletes a zone |
The radius goes up to 256. Leave out yMin and yMax to cover the full height.
The config is at config/eviction_notice.json. Restart the game or server after changing it.
| Option | Default | What it does |
|---|---|---|
evictionIntervalTicks |
20 |
How often each zone is checked, in ticks (20 ticks = 1 second) |
mobs.zombieVillagers |
true |
Keeps zombie villagers out as well |
mobs.ironGolems |
false |
Keeps iron golems out as well |
mobs.wanderingTraders.enabled |
false |
Keeps wandering traders out as well |
mobs.wanderingTraders.llamas |
true |
Keeps their trader llamas out too. Only works while enabled is on, llamas are never kept out on their own |
On each check, mobs inside a zone are moved out and villagers inside lose any bed or workstation they claimed in a zone.
Config files from version 1.2.0 or older are converted to the new layout when the game or server starts and your settings are kept. If the file can't be read, for example because of a typo, the mod uses the defaults and leaves the file alone so you can fix it.
Default config
{
"configVersion": 2,
"evictionIntervalTicks": 20,
"mobs": {
"zombieVillagers": true,
"ironGolems": false,
"wanderingTraders": {
"enabled": false,
"llamas": true
}
}
}Planned, in no fixed order:
- Server controls, such as admin commands, permissions, zone limits and protection against griefing
- Seeing where a zone ends in the game
- An easier way to set up a zone, with a preview
- Possible backport to version 1.21.X
Something not working? Open a bug report. Please include your versions, your mod list and logs/latest.log, that makes it a lot easier to find the problem.
Game crashed? Open a crash report with the newest file from crash-reports/.
Got an idea? Suggest a feature. Check the roadmap above first, it might already be planned.
Anything else? Ask a question, or use something else if nothing above fits.
MIT, see LICENSE
