HomeJavaModsPrevent Villager Hitting
Prevent Villager Hitting
Prevent Villager Hitting — screenshot 1

A client-side, single mixin mod that prevents the player from directly hitting villagers.

@Mixin(Villager.class)
public abstract class VillagerMixin extends Entity {
    @Override
    public boolean isAttackable() {
        return false;
    }
}

That's all. If you even care.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more