the name tag item only works as intended on entities that have no player-related actions under right clicking.
trying to use it on ones such as tamed horses or villagers will instead initiate their right click action like riding or trading. it works on a wolf and ocelot since all it does is it changes the entity's state, not the player's.
i'm guessing either holding the name tag should disable those interactions, or maybe disabling all interactions while sneaking would fix this.
Environment
java 1.7
Linked issues
is duplicated by 14
relates to 2
Comments 72
Here are a couple of thoughts. Can you rename a Zombie Villager and keep the name after being cured? Can you rename a child and grow up with the new name? If you need to duck the GUI problem that's how I think it could work, but I haven't had the oppurtunity to test it yet. (Thinks of so many youtubers and map-makers that will be pleased if this works.) Maybe later they'll let you use sneak-clicking to do this. That's how you access a Donkey/Mule inventory now. Quick question if anyone knows: Can you rename a Wither during the invincibility period? I'm thinking of being very dramatic with a Wither fight I've been planning.
Ducking does not work.
Well this is strange as it did work with villagers then name tags were introduced.
Can confirm that tamed horses and villagers can now be named in 16w33a, but I am still unable to name saddled pigs. Should this therefore be re-opened, or as saddled pigs weren't directly mentioned in the description, would it be better for me to raise a separate ticket?
Confirm that villagers can be named now, and the solution is not shift-right-click as expected, but just right-click, which means you cannot trade with a villager with a nametag in hand.
And still cannot attach leads to a villager. Is there a new ticket for that or?
That would be MC-106302
Cannot rename a horse, but can name a saddled pig, but that might be due to MC-2188.