mojira.dev
MC-245413

Trapped Chest breaks when player moves out of range

If a player has the inventory of a trapped chest open and is moved beyond the range at which the trapped chest stops emitting a signal, the trapped chest will break. It will no longer emit a signal when opened, nor will it play opening/closing sounds or animations.

I tested this with the player being moved via minecart and water, for which the bug manifested. However, it does not seem to manifest when the player moves away by falling.

Notably, the player does not need to be moved to the point at which the trapped chest's inventory is forced to close. Instead, there is a shorter range at which the trapped chest stops emitting a signal, but the player still has access to its inventory. If the player closes the inventory at this time, the trapped chest still breaks as described above.

The only way to fix the bug seems to be to break and replace the chest.

If the bug was created in a single chest, placing another chest next to it will properly create a double chest, but only the new side of the chest will emit a signal. The double chest will also play opening/closing sounds and animations.

If the bug was created in a double chest, both sides will be broken as first described. If one of the sides is broken, the remaining singles chest will also be broken as first described. If that side is then replaced, the chest will behave as described when a single chest is turned into a double chest.

If the bug is created in a double chest with one broken side and one working side, the working side breaks.

I suspect that the bug manifests in each trapped chest block individually, but creating the bug in a double chest causes both blocks to break, as (I believe) they share the same tile entity, which is somehow updating them improperly.

Linked issues

Attachments

Comments 5

Images in order of date:

Trapped chest working properly, powering piston next to it.

Trapped chest displaying broken behavior; inventory accessed, but appears closed and is not powering piston.

Setup used to create bug: manifests when player gets at least 6 blocks from trapped chest via waterflow or minecart.

Additional testing:

The bug manifests when the player is carried up by a soul sand bubble column, sinks in water, or rides by on a pig or strider.

It manifests inconsistently when the player is carried down by a magma block bubble column, is riding a boat pushed by water, descends a ladder, flies by with an elytra, or is blown away by an explosion.

CORRECTION: Falling does seems to manifest the bug, but only rarely.

The bug seems to manifest inconsistently when the player dies with a trapped chest opened; the first few test broke the chest, but many more subsequent tests yielded no bugged behavior.

 

All testing (in this comment and above), other than the death testing, was done in creative mode. Sometimes flying was used to create the initial conditions for the test or to access the chest after performing the test. In the inconsistent cases, flying before or after the test did not seem to affect the bug.

Normal chests are subject to the same bug. Though they do not emit a signal to begin with, this bug will still prevent them from playing opening/closing sounds and animations.

Reloading the chunks solves the bug.

Thank you for your report!
We're tracking this issue in MC-229680, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Chris Reeves

(Unassigned)

Unconfirmed

(Unassigned)

1.18.1

Retrieved