
ModCC-BY-4.0
Protect My Villager
Simple utility mod that prevents hitting villagers accidentally and adds protection filters.
2.5K
Downloads
10
Followers
2 months ago
Updated
📦
19
Versions
📖About Protect My Villager
Protect My Villager
Introduction
Adds a protection & filtering feature that prevents you from accidentally attacking villagers.
If you've ever hit a villager by your mistake and ended up with higher trade prices, this mod will solve that problem.
Features
- Toggle protection via toggle keybinding (Default: M)
- Supports mod menu configuration to customize options
- Toggle hand swing animation when attacking villagers (packet included)
- Bypass attack cancellation if the hand item is sword-type
FAQ
Why should I use it?
- It is lightweight and user-friendly. You can customize extensive filters via the mod menu and toggle features instantly using keybinds.
How does it work?
- It hooks attack methods to filter specific entity types and cancels attack packets before they are sent.
Where can it be used?
- Since it operates entirely on the client-side, you can use it anytime and on any server.
Does it affect the server?
- No. It has no impact on server-side logic or your game performance.
Dependencies
- Fabric API
- Mod Menu (Optional, used for configuration)