Skip to main content

Villager Trading & Optimization

A trading hall lets you easily access and reroll villager trades, keep villagers safe, and automate resource gathering. On Prime, we also have villager optimization to help reduce server lag from large villager setups.

Building Trading Halls​

Materials​

  • Building blocks (any)
  • Workstations (lectern, smithing table, etc.)
  • Glass (optional, for visibility)
  • Lighting (torches, lanterns, etc.)
  • Rails/minecarts or boats (for transport, optional)

Steps​

  1. Location: Pick a flat, accessible, well-lit spot.
  2. Stalls: Build 1-cell stalls for each villager. Add glass for visibility if desired.
  3. Workstations: Place a workstation in each stall to assign professions. (Villagers claim the nearest available station.)
  4. Transport: Move villagers in using boats or minecarts.
  5. Lighting & Security: Light up the area and secure entrances to prevent zombie attacks.

Tips​

  • Beds are not required for trading—villagers only need access to their workstation to refresh trades.
  • Villagers refresh trades twice per day if they can access their workstation.
  • Use trapdoors or slabs to block villagers in but allow access for trading.
  • For rerolling trades, break and replace the workstation before locking in trades.
  • Automate item collection with hoppers or minecart chests if desired.

Villager Optimization​

Prime has villager optimization to help reduce server lag from large villager setups. This allows you to optimize villagers in trading halls so they retain their function but don't consume as many server resources.

How to Optimize Villagers​

Using Nametags:

  1. Use /nametag to get an optimization nametag
  2. Rename your nametag to either:
    • Optimize
    • DisableAI
  3. Right-click on a villager with the nametag to optimize them
  4. Renaming the villager to anything else will unoptimize them

Important Notes​

  • Optimized villagers maintain their trading function - they can still be traded with normally
  • Trades auto-restock - optimized villagers' trades automatically restock periodically
  • Reduced AI - optimized villagers have reduced AI for performance, so they won't pathfind or move around as much

Best Practices​

  1. Optimize established traders - Only optimize villagers after you've locked in their desired trades
  2. Use in large setups - Focus on optimizing villagers in large trading halls with 10+ villagers
  3. Keep some unoptimized - Consider keeping a few unoptimized villagers for breeding or specific mechanics
  4. Monitor performance - Use optimization when you notice lag from large villager populations