
Villager Trade Guard
Trackpad-friendly villager protection: left-clicking villagers or wandering traders opens trading instead of hitting them.
About this Mod
Villager Trade Guard
Villager Trade Guard is a small quality-of-life Fabric mod for players who accidentally hit villagers when they meant to trade with them.
It is especially useful for trackpad users, where right-clicking can be awkward and accidental left-clicks are easy. When the mod is enabled, trying to attack a villager or wandering trader opens their normal trading interaction instead.
Features
- Prevents accidental hits on villagers
- Works with villagers and wandering traders
- Converts left-click attacks into trade interactions
- Works client-side on multiplayer servers
- Also provides server-side protection when installed on a server
- Supports Mod Menu
- Includes an in-game toggle to turn the behavior on or off
Configuration
If you have Mod Menu installed, open the Villager Trade Guard config screen to toggle the mod on or off.
The setting is saved locally and will persist between game launches.
Multiplayer Notes
Villager Trade Guard can work when installed only on your client. In that mode, it prevents your client from sending the attack action and sends a normal interaction instead.
Client-side mods cannot override server rules, so trading still depends on whether the server allows the normal villager interaction.
Credits
This mod was fully AI-generated using Codex and ChatGPT.
Available Versions
How to Install Villager Trade Guard on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "Villager Trade Guard". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2
Server-side
~ OptionalRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Villager Trade Guard server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is Villager Trade Guard compatible with fabric?
Villager Trade Guard officially supports fabric for Minecraft 26.1.2. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Villager Trade Guard – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Villager Trade Guard consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Villager Trade Guard with just one click on your server.