Better Pets Health

Quick rating

Community listing page, reviews here may not be monitored by the author.

Better Pets Health

By MouldytoastOwner

No reviews yet

whenever a player's OWNED pet (tamed mob) takes damage, the same damage amount is applied to the owner player instead of the pet.

Mod Loaders
Minecraft

About

Description

Better Pets Health

Better Pets Health makes your tamed/owned pets stop taking damage by transferring that damage to their owner instead.

Example: If your wolf is hit for 3.0, the wolf takes 0 and you take 3.0.

Works on client + dedicated server (must be installed on the server; clients can join without it unless you want config UI).


Features

  • ✅ Core rule (default): Pet takes 0 damage, owner takes full damage
  • ✅ Supports all owned/tameable entities that expose an owner (wolves, cats, parrots, etc.)
  • ✅ Supports modded tameables via config allow/deny entity-id lists
  • ✅ Optional distance limit (disabled by default)
  • ✅ Damage type ignore list (prevents weird edge cases like void/fall/out-of-world)
  • ✅ Message aggregation to avoid spam (actionbar by default)

Configuration (Cloth Config + AutoConfig)

This mod uses AutoConfig with Cloth Config.

Config file location:

  • config/betterpetshealth.json5

Key options

  • enabled (default true)
  • transfer_mode:
    • TRANSFER_ONLY (default) — pet 0, player full
    • DUPLICATE — pet full + player full
    • SPLIT — split damage with percent_to_player
    • ignore_if_owner_creative (default true)
    • ignore_if_owner_spectator (default true)
    • ignore_if_owner_offline (default true)
    • distance_limit_enabled (default false)
    • ignore_damage_types (default includes: in_wall, drown, fall, out_of_world, etc.)
    • message_enabled (default true)
    • message_mode (default ACTIONBAR)
    • message_aggregate_window_ms (default 1000)
    • message_cooldown_ms (default 400)

Dependencies

Required:

  • Fabric API
  • Cloth Config API (Fabric)

Notes / Edge Cases

  • Damage only transfers if the owner is a player and online
  • If the owner is creative or spectator, default behavior is no transfer (pet takes normal damage)
  • Optional distance limit can restrict cross-dimension / far-away transfers

License

MIT