While a villager trading hall isn't technically a farm, many players consider it one of the best ways to gather resources in Minecraft. Players can assign various professions to unemployed villagers.
This particular tactic will not work if villager trading rebalance officially releases in Minecraft. Players will only find a handful of enchanted books from librarians spawned in a certain biome.
Villages are very useful in Minecraft ... and discounted items from the villager's shop. These discounts will be permanent, so it's a great way to reduce the trading requirements.