mojira.dev
MC-295919

A player is being kicked out of the all mountable mobs inventory which can have a chest on them while riding them and this mount's NoAI is being set to 0.

When trying to open mount's inventory while riding on it, I'm being kicked out of it’s inventory to normal game view, while executing the provided command (data modify entity @n NoAI set value 0b).
I checked Horse, donkey, Lama and also Mule but only those mobs that player can but a chest on are effected.

Environment

Running command: data modify entity @n NoAI set value 0b
Riding a mount that you can put chests on

Related issues

Comments

clamlol

This report is a duplicate of MC-274445. The core issue is that when a player rides an entity which supports a chest, such as a donkey or boat with chest, and that entity’s data is modified, the inventory GUI is closed if the player has it open. This may be intended, so that Mojang doesn’t have to add special handling for the case where the entity’s chest is removed while the player is looking at it, but regardless it falls under the longstanding policy that unexpected issues resulting from modifying entity’s data is modified via commands will not be fixed (provided the data modification itself succeeds).

DeHa

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5

Retrieved