mojira.dev
MC-268801

Shulker boxes in saved hotbars inconsistently update to item components

Shulker boxes full of items with nbt data, saved to a hotbar before item components, do not always update automatically to use the new system, leaving empty shulker boxes

Most often due to items inside the shulker box having NBT values that can no longer be parsed correctly, deleting the entire inventory of the shulker box rather than just the invalid component

Has happened in at least one case with entirely valid items, cause still unknown

Linked issues

Attachments

Comments 7

Please attach a video of this happening.

I have added images which I believe convey the issue, I was unable to recreate it by purposefully saving testing boxes in 1.20.4, but it continues to fail to load some I already had

Can confirm. Items inside a shulkerbox are not properly updated to newer versions, leaving the boxes empty. This is especially true for 'broken' items which do not follow conventional rules of items (such as stacked unstackable items).

Hello! Can you please attach here your `hotbars.nbt` (should be inside your Minecraft root directory) from 1.20.4? Thanks!

I have done some more testing, figured out a handful of cases where no longer allowed data values are the culprit, but have not been able to figure the issue with the one pictured in the attachment. I have included a file with some examples of unusual behavior with disallowed items in and out of shulker boxes, and also the original undiagnosed shulker box from my original hotbar file

I've attached a saved hotbar.nbt with the relevant data included. Loading into 24w09 will result in the shulker box (and/or bundle) being empty whether it be in the player's inventory, or as a saved hotbar. When comparing it to other instances of stacked un-stackable items, the data does not convert properly:

[media]

Edit for clarification; the attached hotbar nbt data was sent only including was was assumed to be relevant information, or more specifically the 9th saved hotbar and it's items. It was created in a vanilla enviornment, and edited manually after copying it.

1.20.4:

[media]

24w09a:

[media]

Note: The data properly converts it the shulker box is placed down, this only occurs for when the shulker box is in item form.

Jiingy - how did you create `hotbars-1.nbt`? This state should never be created by a Vanilla client, as far as I can tell.

zglib

gegy

Community Consensus

Platform

Important

Datafixer

24w09a

24w10a

Retrieved