Villagers
Because Minecraft: Java Edition is natively single-threaded, we have made some changes to villager behavior in order to handle loading multiple trading halls and farms at once.
Last updated
Because Minecraft: Java Edition is natively single-threaded, we have made some changes to villager behavior in order to handle loading multiple trading halls and farms at once.
Last updated
In vanilla Minecraft, villagers play an essential role in the game's economy and provide players with a variety of items to trade for, ranging from basic resources like food and tools to more valuable items like enchanted books and emeralds. Villagers also have unique AI behavior that allows them to detect and pathfind to their designated workstations, even if they are several blocks away. Understanding this behavior is critical for players who want to create efficient villager-based farms and trading halls, as it allows them to control where the villagers move and interact with specific workstations and mobs.
Dormcraft is a server that uses plugins to modify Minecraft's default villager behavior, which can change the way players interact with the game. For example: Villagers can be lured by holding an emerald block in their hand, much like cows or sheep would be lured with wheat. This change makes it easier for players to move villagers to specific locations within their villages, which can be helpful when creating more intricate designs. We have also introduced some limitations to the villagers' behavior for optimization reasons, enabling more players to have large trading halls loaded at the same time:
When villagers are unable to move to a full block for some reason, such as standing on beds or being trapped by solid blocks, their pathfinding AI is disabled, “lobotomizing” them. These villagers are still able to trade with players.
This change can make it more challenging to create efficient iron farms, as many common designs prevent villagers from moving, or only allow them to stand on beds, while needing villager AI to function. If your farm isn't working, try giving your villagers some room to breathe. Iron golem farm designs similar to the one shown below- which gives villagers a 3x1 space to flee to- work on our server.
Partial (not full) blocks include, but are not limited to:
Slabs
Fences
Beds
Lecterns
Iron bars
Glass panes
An unemployed villager gains a profession by claiming an unclaimed job site block. For example, an unclaimed cartography table converts an unemployed villager into a cartographer when the villager claims it, and both the villager and the table emit green particles to indicate success.
An inaccessible (or destroyed) job site block causes the connected villager to lose its profession, but that does not affect the player's popularity in the village.
Villagers can have a maximum of 10 trades. Each level unlocks a maximum of two new trades, retaining the old ones.
Zombie villagers cannot spawn from Zombie spawners.
To cure a zombie villager, a player must splash it with a splash potion or an arrow of weakness and then feed it a golden apple.
Cured zombie villagers have permanently cheaper trades when trading with the player that cured them. Nearby villagers' trades will be temporarily cheaper.
Each trade can be used a maximum number of times, after which the trade becomes disabled. Once trades are disabled, villagers must work at their corresponding job site block to resupply their trades, which will happen twice per day (lobotomized villagers often refresh their trades immediately).