All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Protect My Villager

Protect My Villager

by yfc • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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)

Updates & Screenshots

How to Install Protect My Villager (Mod)

Protect My Villager by yfc is verified for Fabric across Minecraft versions 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5 (latest release: 1.2.4, file size: 29 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Protect My Villager file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Fabric
6mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
9mo ago 1
1.21.x
Fabric
10mo ago 1
1.21.x
Fabric
10mo ago 1
1.21.x
Fabric
11mo ago 1
1.21.x
Fabric
11mo ago 1
1.21.x
Fabric
11mo ago 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.8
Fabric
last yr. 1
# v1.2.4 (1.21.9+)

## Updates
  • Changed mod config screen
# v1.2.3 (1.21.9+)

## Updates
  • Changed mod config screen
  • Removed unused logic
# v1.2.2 (1.21.9+)

## Updates
  • Changed author
  • Removed hardcoded mod id
# v1.2.1 (1.21.9+)

## Updates
  • Fixed minor issues
  • Simplified code structure through refactoring
# v1.2 (1.21.9+)

## Updates
  • Added new option that bypasses attack cancellation when a holding sword
  • Changed mod author (kop -> GreyMusic)
  • Changed Y position of option buttons in config screen
  • Removed unused & complicated logic
# v1.1 (1.21.9+)

## Updates
  • Updated to be compatible with 1.21.11
  • Fixed all crashes in mod container init logic (sorry for the late update)
  • Added some more language support in lang directory

# This version needs some fixes! (Please use 1.0.6 or 1.0.5)
# This version needs some fixes! (Please use 1.0.6 or 1.0.5)
# v1.0.6 (1.21.9+)

## Updates
  • Version compatible with 1.21.9 ~ 1.21.10
# v1.0.6

## Updates
  • Simplified conditional logic in mixins
  • Removed duplicated code
  • Optimized some simple logics
# v1.0.5 (1.21.9+)

## Updates
  • Version compatible with 1.21.9 ~ 1.21.10
# v1.0.5

## Updates
  • Fixed minor issues in removing swing hand logic
  • Added some logging utils in client initialization.
  • Removed useless logic in source code
# v1.0.4 (1.21.9+)

## Updates
  • Version compatible with 1.21.9 ~ 1.21.10
# v1.0.4

## Updates
  • Changed the ON/OFF text colors in the configuration screen
  • Fixed a minor issue in the mod info logging logic
  • Added an option to cancel the hand swing packet
  • Aligned the option button widgets vertically
# v1.0.3 (1.21.9+)

## Updates
  • Version compatible with 1.21.9 ~ 1.21.10
Protect My Villager Icon
Download Protect My Villager
Select game version
Select platform