Villager Trade Reroll
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/U5Hz_D1yhrA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>Villager Trade Reroll allows players to reroll villager trades directly from the vanilla trading UI, without breaking job site blocks.
✨ Features
- Reroll villager trades directly from the trade screen
- No job site block breaking or replacement
- Uses Mojang’s native trade generation (no hardcoded trades)
- Reroll option appears as a villager trade for a vanilla feel
- No commands or custom GUIs
- No NMS or packet hacks (future-proof)
❓ How It Works
Open a villager’s trade UI
- Scroll to the bottom
- Use the trade:
- 1 Emerald → 🔁 Reroll Trades
- The villager’s trades are regenerated using vanilla logic
- The trade UI refreshes automatically
🔴 Keep in Mind ❗❗
- This needs atleast one emerald to work
- Reroll does not consume any emeralds
🧠 Why a Trade-Based Reroll?
- Minecraft does not allow:
- Buttons inside the villager UI
- Zero-ingredient trades
- Client-side override of merchant validation
To remain fully vanilla-safe and cross-version compatible, rerolling is triggered through a real villager trade. This is the only reliable and future-proof method supported by the game.
📦 Compatibility
Supported loaders
- Paper,
- Purpur,
- Supported Minecraft versions -
- 1.21.4 - 1.21.11 (Latest release)
⚠️ Known Behavior
- After rerolling, the mouse cursor may reset to the center.
- This is vanilla client behavior caused by reopening the trade UI and cannot be controlled by plugins.
📁 Designed for Stability
- VillagerTradeReroll:
- Does not replace villagers
- Does not modify job site blocks
- Does not fake enchantments
- Automatically adapts to future trade changes
🔮 Planned Improvements
- Configurable reroll cost
- Cooldowns per villager
- Permission-based access
- Config.yml support
- Expanded version support when stable