Find a name tag in a chest, fishing, or trading with a librarian villager
Open an anvil
Place the name tag in the first slot
Type the desired name in the text box
Take the renamed name tag from the output slot
Use the name tag on a mob to apply the name
