How to name a Pokémon in Minecraft?

Hello, specific keys: First press E to bring up the backpack, right-click the sprite pattern on the left, "Summary" will appear, and after clicking, the sprite panel will appear, as shown in the picture:

You can see There is a small "R" below the sprite image:

Click to change the name. Hope this helps you