nearest-villager

Nearest Villager Job: Automatically assigns workstations to the closest villager and lets you highlight owners with a sneak-right-click. Optimized for Paper/Spigot 1.21.1+.

19

Quick challenge

How far can you run before the mobs catch you?

nearest-villager

🏘️ Nearest Villager Job

Ensure the right villager gets the job – every single time.

Are you tired of placing a workstation only to have a villager 50 blocks away claim it while the one standing right next to it stays unemployed?

closest eligible villager fixes Minecraft’s inconsistent profession assignment by always selecting the closest eligible villager.

---

🌟 Key Features

🧠 Smart Workstation Assignment

- Automatically scans a nearest unemployed adult villager when placing a workstation - Assigns the job to the nearest unemployed adult villager - Works with all standard stations (Lectern, Composter, Barrel, etc.)

---

✨ Workstation Highlighter (Sneak-Click)

- glow for 3 seconds any workstation - The linked villager will glow for 3 seconds - Perfect for debugging and organizing trading halls

---

⚡ Lightweight & Safe

- Built on the official Paper / Spigot API - Fully compatible with vanilla villager mechanics - No world corruption, no AI conflicts

---

⚙️ Fully Configurable

- Simple `config.yml` - Toggle features or adjust timings to your liking

---

🛠️ Configuration

```yaml

Enable or disable the sneak-click glowing feature

sneak-click-glowing: true

Duration of the glowing effect in ticks (20 ticks = 1 second)

glowing-duration-ticks: 60

ADS