mojira.dev
MC-263718

When inside interaction entity and riding a boat, clicking can play hand animation with no detectable interaction

The Issue:

When the player's head is fully inside of an interaction entity and the player is also riding a boat, clicking on the interaction entity can play the hand animation with no detectable interaction.

This issue seems to occur particularly when the area in which the player clicks happens to intersect the boat hitbox visually, although one would expect to instead be able to click the interaction in this instance (especially given that the hand animation plays, which it does not normally do when clicking on your own boat).

This most likely affects other entities/setups also; I would expect it has something to do with MC-260305 and/or MC-196201.

Steps to Reproduce:

Load the provided

[media]

 datapack into your world. While overtop water, run the command /function boatbug:setup to summon and ride a boat with an interaction entity anchored in front of the player's head.

Now, while inside the boat, try clicking on the interaction entity (which will cover your entire head and is the closest entity to be clicked). Observe that:

  • Sometimes the interactions register, and sometimes they do not (particularly when looking at the boat hitbox, even though the interaction entity does not intersect this).

  • When the interaction fails, your hand moves as though the interaction was successful despite this not being the case.

  • Moving around the boat can sometimes fix or cause the issue to occur again. It is very inconsistent and unpredictable.

Notes:

I am using this entity setup in a minigame in order to have a boat in which left/right clicking is always a detectable action.

A camel has been used in order to horizontally displace the interaction entity inside of the player at all times, and the interaction entity should then be able to reliably detect clicking regardless of the player's facing direction (which it does not due to this bug). I have been able to rule out the possibility that the interaction click goes to the camel when this issue occurs.

A similar setup with an invisible villager for right click detection worked just fine, except I realized I needed left click detection as well, for which an interaction entity is better suited. One would expect these entities to behave very similarly with regard to interaction priority.

Because of this issue, I have had to do some very janky workarounds with resummoning interaction entities in the hopes that a newly summoned interaction entity's hitbox takes precedence over the boat's hitbox. Even this does not work reliably, unfortunately.

Attachments

Comments 1

Upon further extensive testing in the latest release (1.20.4), I am unable to reproduce this issue anymore. I will update this ticket again if it occurs in the future, but for now, assume it is invalid.

Evtema3

(Unassigned)

Unconfirmed

(Unassigned)

1.20.1

Retrieved