-
Bug
-
Resolution: Incomplete
-
None
-
1.19.60
-
None
-
Unconfirmed
-
Windows
When a block's inventory (Tested on Chests and Redstone Chests) is modified via commands (replaceitem was used in this test) while a player has the block inventory open they become desynced. The player can no longer add items or take items away from the block's inventory.
In the past this method has been used to create the appearance of infinite items in a chest as it refills immediately.
Steps to Reproduce
Place a chest, and use a repeating command block with a replaceitem command to set the contents of the chest's inventory. The slots affected by the replaceitem command will no longer modifiable by the player.
In the included video, I use a repeating command block that sets the inventory of a chest. The tick delay is set to 200 to demonstrate that it is once the chest's inventory has actually been changed that the bug occurs. I withdraw several blocks from the chest, then when the command is executed and the chest refills, I can no longer pull items from it until I close the chest and re-open it.