The bug
Cannot use the name tag to name certain mobs when held in off-hand.
Affected mobs:
Adult horses and their variants
Adult llamas & Trader Llamas
Saddled pigs(fixed in 20w27a)Villagers with trades
Wandering Traders
How to reproduce:
Rename a name tag with something else, such as "
Custom Name Tag
"Put it in the off-hand
Right-click any of the above mobs, or shift + right-click if it open a GUI
❌ notice neither right-click method renames the mob
Linked issues
relates to 1
Comments 6
Saddled pigs have been fixed now, you can rename them with a name tag in your off-hand, if you hold SHIFT (to prevent mounting it) as expected.
I can confirm this in 1.19.2 though I'm inclined to believe that this behavior is working as intended judging by the following comment made by @unknown on MC-197156 where they state that empty main hand interactions take precedence over offhand interactions.
Closing this as "working as intended". We had a discussion about this internally and the reason for this behavior is that empty main hand interaction (riding) is a valid interaction which takes precedence.
This unfortunately means interacting with horses is different than i.e pigs who does not have a valid empty main hand interaction.
Confirmed for 1.13.1-pre1