mojira.dev
MC-14525

name tag item doesn't work on entities with right click ability

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.

Linked issues

Comments 72

Cannot rename a horse, but can name a saddled pig, but that might be due to MC-2188.

I just tested it, and you can name or rename a horse if you right-click while sitting on it.

You can rename a horse while sitting on it.

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.

62 more comments

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?

This is still not working for saddled pigs... 🐷

yarrmateys

Agnes Larsson

Confirmed

item, name_tag

Snapshot 13w16b, Snapshot 13w17a, Snapshot 13w19a, Snapshot 13w21a, Snapshot 13w21b, ..., Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b

Minecraft 16w33a

Retrieved