Better Pets configuration
Changing settings in game
You do not have to edit the file. Operators (and the owner of a singleplayer world) can change every setting in game:
- In the pet book: click the gear tab on top of the book, or run
/betterpets settings, and click a setting. - In chat:
/betterpetslists every setting with clickable values;/betterpets set allowGive falsesets one,/betterpets reset allowGiveorreset allputs them back, and/betterpets reloadreads the file again after you edited it by hand.
Changes are saved to the file right away. The book's cover colour is not a server setting: every player picks their own in the book.
The file
After the first start with the mod installed, you will find config/betterpets.json in the server's config folder (in singleplayer: .minecraft/config). It looks like this:
{
"enabled": true,
"petMenu": true,
"protectFromOwner": true,
"strongLeads": true,
"deathAlerts": true,
"allowCall": true,
"callCooldownSeconds": 30,
"allowRename": true,
"allowGive": true,
"findSeconds": 30,
"scarves": true,
"sleepOnBed": true,
"snowyCoats": true,
"santaHats": true,
"parrotTalk": true,
"parrotTalkChance": 30
}
Settings
| Key | Default | What it does |
|---|---|---|
enabled |
true |
Master switch. Off means no tracking, no protection, and /pets only says the mod is off. |
petMenu |
true |
Shift-right-clicking your pet opens the pet book. Turn it off to keep vanilla's behavior, including opening a horse's inventory. |
protectFromOwner |
true |
Owners cannot hurt their own pets, unless they sneak while attacking. |
strongLeads |
true |
A pet on its owner's lead is pulled along instead of the lead snapping. |
deathAlerts |
true |
Tell the owner where a pet died. The pet is marked dead in the list either way. |
allowCall |
true |
Allow /pets call. Turn it off on servers where teleporting pets feels like cheating. |
callCooldownSeconds |
30 |
Seconds between two calls per player, 0 to 3600. |
allowRename |
true |
Allow /pets name. Off means name tags only. |
allowGive |
true |
Allow /pets give. |
findSeconds |
30 |
How long /pets find makes the pet glow and shows the arrow, 5 to 300. |
scarves |
true |
Dogs and cats can wear a Pet Scarf. Off means right-clicking a pet with a scarf does nothing. |
sleepOnBed |
true |
When you go to bed, your dogs lie down on the end of it or next to it. |
snowyCoats |
true |
Dogs and cats out in falling snow turn white and shake it off under a roof. |
santaHats |
true |
Dogs, cats and parrots can wear a Pet Santa Hat. |
parrotTalk |
true |
Tamed parrots repeat bits of chat in a speech bubble. |
parrotTalkChance |
30 |
Percent chance that a parrot repeats a chat message right away, 0 to 100. It may still bring it up later. |
Changing settings
You have four options, pick whichever is closest:
- Edit the file with the server stopped, then start it. Simple and foolproof.
- Edit the file and reload live with
/mycel reload betterpets. No restart needed. See commands. - Change it live with a command, e.g.
/mycel set betterpets callCooldownSeconds 120(needs operator permission;/mycel get betterpetsshows every value). No file editing needed. - Use the config screen from the mod list (Forge and NeoForge, singleplayer). Same twelve settings, with reset buttons.
Broken file?
If the JSON gets mangled (bad edit, crash mid-save), the mod logs a warning and falls back to defaults rather than crashing. Delete the file and restart to get a fresh one. The same goes for the pet list in <world>/data/betterpets.json: if it cannot be read, the list starts empty and fills up again as pets are seen.