
DatapacksJava
Pet Totem
A datapack that allows you to craft a totem for your pets. Free Minecraft Java datapack for 1.21.9, 1.21.10.
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Pet Totem Datapack
A totem that keeps your loyal friend safe.
Introduction
This datapack allows the player to craft a totem that can be given to a pet, which will save him of a deadly hit.
Installation
Place the .zip in your world's datapacks folder
Use
- If you don't have the recipe use the
/reloadcommand to obtain it - Then craft the totem:
- Cod can be replaced with raw salmon
- The craft is shapeless, it doesn't matter the order you put the items

- When facing to your pet while being near it, hold right click
- You will see a golden heart particle
- After 3 seconds it will consume the totem and give it to your pet
- The pet will glow and have a golden heart on his head for 5 seconds, meaning it has obtained the totem
- If you try to use the totem while no allowed mob are near you, you will get a message and the totem won't be consumed
- Use the
/trigger .pet_totem_check_petsto see in a 10 block radius all the pets that have a totem.
Demonstration
Compatibility
This datapack works in +1.21.6
Verified by MCModsHub
- Downloads as Pet Totem (DP).zip
- Download size: 108 KB
- Download link checked 20 Aug 2026 — working
These come from our own check of the pack file, not from the source page.