mojira.dev
MC-121023

Unable to name certain mobs with off-hand

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:

  1. Rename a name tag with something else, such as "Custom Name Tag"

  2. Put it in the off-hand

  3. 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

Comments 6

Confirmed for 1.13.1-pre1

Confirmed for 1.13.1

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.

Can confirm in 1.18.2.

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.

Jack McKalling

(Unassigned)

Confirmed

Player

Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1, ..., 1.17, 1.17.1, 1.18.2, 1.19.2, 24w45a

Retrieved