Описание
# 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](https://modrinth.com/mod/fabric-api)
- [Mod Menu](https://modrinth.com/mod/modmenu) (Optional, used for configuration)
## Updates & Screenshots
- [Changelog](https://modrinth.com/mod/protectmyvillager/changelog)
- [Gallery](https://modrinth.com/mod/protectmyvillager/gallery)