Petting Compat
A compatibility add-on for Petting. It makes Petting work on modded multi-part mobs and stops it from taking over clicks on mobs that have their own interactions.
✨ Features
🕷️ Multi-part mobs work
Some modded mobs are built from several hitboxes, like the Ice Spider from Iron's Spells 'n Spellbooks. A right-click on one of the extra hitboxes hits that part instead of the mob, so Petting never sees it.
Petting Compat passes the click on to the real mob, so you can now:
- Tame it with its golden treat
- Open its inventory, make it sit, or ride it with Petting's keybinds
- Use any other right-click interaction from any mod on it
🚫 Ignore list
Some mobs have their own right-click system, such as Modern Companions, where you talk to your companions. Petting can grab those clicks first.
Mobs on the ignore list are left alone by Petting completely: no taming, no pet checks, no keybinds, no click handling. The click goes to the mob's own mod.
Modern Companions is ignored by default.
⚙️ Configuration
config/pettingcompat-common.toml
# Use full IDs ("modid:mob") or a whole mod ("modid:*")
pettingIgnoredEntities = ["modern_companions:*"]
🍖 Taming modded mobs
Petting decides which treat tames which mob through entity tags. Petting Compat makes the click reach the mob, and a datapack decides which treat it takes.
Example: data/petting/tags/entity_type/tames_with/golden_eye.json
{
"replace": false,
"values": [
{ "id": "irons_spellbooks:ice_spider", "required": false }
]
}
📦 Installation
- Minecraft 1.21.1, NeoForge 21.1.x
- Install it on both the client and the server
- Petting is optional. Without it, the multi-part click fix still works for other mods.
❓ FAQ
Can I use this in my modpack? Yes. It's MIT licensed, so go ahead.
Is this made by the Petting author? No. It's an unofficial add-on and isn't affiliated with Petting or its author.
Found a bug or a mob that doesn't work? Open an issue on GitHub.