mojira.dev
MC-270531

Opening the inventory when riding a pig or strider shows the player's inventory rather than the mob's

When opening the inventory when riding a horse, donkey, mule, llama or camel, the inventory screen for that mob is opened. However, doing the same on a pig or on a strider opens the player inventory screen rather than the pig's/strider's inventory, which does not seem correct at all.

How to reproduce

  1. Ride your mob of choice

  2. Open the inventory

Expected results

You would always enter the mob's inventory.

Actual results

You do not necessarily do so.

How to fix

Make it so that entering the inventory when riding a mob always opens the mob's inventory rather than the player's. This should preferably also be the case for mobs via /ride.

Attachments

Comments 4

The method of saving saddles for pigs and striders differs from that of horses, donkeys, mules, skeleton horses, zombie horses, and camels. Instead of occupying an item slot in an inventory, pig and strider saddles are represented solely by a Saddle NBT tag, which can be either 1 or 0. None of the saddle's other NBT data is preserved. Notably, the saddle loses its name when attached to a pig or strider and subsequently killed. This seems intended. The sole benefit of addressing this issue would be the ability to retrieve the saddles from pigs and striders without having to kill them. However, the drawback would be the inability to access your inventory while riding these mobs, resulting in issues like those seen in MC-269234 and MC-19974, among others.

Pigs and striders don't have an inventory

Saddles are saved as equipment as of 25w03a so I don't believe the first comment to be valid now.

Still affecting 25w03a.

And mobs wearing helments have it as equipment too, you can ride them (with /ride) too, etc. The only mobs that show their items are those which have an inventory defined. Pigs and striders don't, and changing that is a feature request, not a bug.

muzikbike

(Unassigned)

Confirmed

UI

1.20.4, 24w14a, 25w03a

Retrieved