Home›Java›Mods›Real Pet Guard
Real Pet Guard
ModsJava

Real Pet Guard

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by Jahus · on Modrinth

⬇ Download on Modrinth

Real Pet Guard

Server-side mod for Minecraft. Simple and crystal-clear rules for player/pet combat.

Works on dedicated server and singleplayer (logic runs on the server side only).

Does not touch environmental damage, mob damage and pet (im)mortality. Aimed at survival / outdoor combat, not "cosy immortal pets".

Config (config/realpetguard.json)

{
  "prevent_player_attacking_pets": "own",
  "allow_crouch_bypass": "owner",
  "prevent_pets_attacking_players": "no"
}
Key Values Default Meaning
prevent_player_attacking_pets no own all own no: vanilla;
own: each player cannot hurt their pets;
all: no player can hurt any tamed pet.
allow_crouch_bypass owner all owner Who may still kill a protected pet while sneaking.
Ignored if prevent is no.
prevent_pets_attacking_players yes no no yes: pets never target players (assist / retaliate are off)

Guardrail

If you set prevent_player_attacking_pets=all, allow_crouch_bypass=owner and prevent_pets_attacking_players=no,
a random player could be bitten without any way to defend himself (hit the pet).
On load, the mod forces prevent_pets_attacking_players to yes and logs a warning.

Recommended defaults

Outdoor combat, simple

{
  "prevent_player_attacking_pets": "own",
  "allow_crouch_bypass": "owner",
  "prevent_pets_attacking_players": "no"
}

No PvP on pets, but…

{
  "prevent_player_attacking_pets": "all",
  "allow_crouch_bypass": "all",
  "prevent_pets_attacking_players": "no"
}

Anyone can still crouch-kill a pet if needed; pets may still attack players who hurt their owner or hurt them.

License

Apache-2.0

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.

File checked by MCModsHub

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

Explore more