tModLoader Pet Renamer - Allows you to name your pets

direwolf420

Terrarian
icon.png
Pet Renamer
icon.png


Download via Mod Browser ingame! Available on both 1.3 and 1.4 tModLoader!
Steam Workshop page: Workshop


This small mod allows the player to name the summon item of any pet, so that the pet will show its name when hovered over it (similar to how NPCs show their name)

There are two ways to use this mod: UI and chat command

UI
How to use:

* Press the hotkey (default: 'P') (YOU HAVE TO BIND IT FIRST!)
* Place a pet summoning item in it
* Type a name into the text box
* (optional) Press 'Random' for a random name
* (optional) Press 'Clear' to delete the text
* Press 'Apply' to set the text from the text box as the name for the pet
* (optional) Take out the item
* Press 'X' to close. Item will be returned to you if it's still in the UI

Notes:
* If you hold a pet summoning item in your cursor and press the hotkey, the item will be automatically placed in the UI
* If you leave the UI with the item in it open and close the game, it will appear again next time you play

Demonstration:
ui.png

petnameselectscreen.png



Chat Command
How to use:

* Either open your chat (default: 'Enter'), then left click on a summon item (so it sticks to your cursor), or hold an item in your cursor and then open your chat
* The chat will then say '/renamepet ', the following words you type in will be accepted as the new pet name
* To remove the name, simply type 'reset' as the name (yes, you can name your pet 'reset' aswell, but only if it doesn't have a name currently)

Example:
'/renamepet Mr. Bones' >> sets or renames the name of the pet item you are holding to 'Mr. Bones'
'/renamepet reset' >> deletes the current name

Demonstration:

Final notes:
* It will also save the name of the player that gave the pet its last nickname
* Pet names will be saved on the item, even when disabling the mod and enabling it again
* Multiplayer compatible
* Compatible with most modded pets if they do it the vanilla way:
* If a summon item happens to summon multiple different pets at once, only one of them will be named
* If the pet name hover text only shows up in a specific position, contact that other mods dev so he can fix the pets hitbox

Credits:
* jopojelly for UI
* darthmorf for UI help

Localization:
If you want to add support for different languages, you are welcome to contribute localizations here: Github
List of localization contributors:
* Russian: GodBybrid

Source code: Github
 
Last edited:
This looks pretty cool, but in a practical sense how much is pet naming gonna make a difference if you don’t have multiple pets. Also I suggest a UI instead of a command. Otherwise, this is neat and nicely done.
 
Pushed a small but needed update to narrow down pet summoning items (you could name potions in the previous version lol)

This looks pretty cool, but in a practical sense how much is pet naming gonna make a difference if you don’t have multiple pets. Also I suggest a UI instead of a command. Otherwise, this is neat and nicely done.

The mod is not meant to make a difference, it's just a little bit of customization and fun for multiplayer. Also, vanilla only really supports having two pets out (regular and light), which this mod fully supports. Mod compatibility is just a bonus
A UI was planned from the start but to keep the mod as simple as possible the chat prompt was a natural way of dealing with things
 
Update v1.1 is out, check the changelogs!

Adds a UI in addition to the chat command that allows you to name the pet of your choice.

ui.png


Shoutout to @jopojelly and @darthmorf for providing me with the basic UI I could use to make this happen
 
Update v1.1.1 is out, check the changelogs!

Using the UI now allows you to randomize the name, over 10 million possible names!

 
Back
Top Bottom