Mojira Archive
MC-271143

Packet error (with possible duplication bug) from invalid JSON name in containers

When placing down a shulker box with a custom name as well as block entity NBT specifying an invalid custom name, the shulker box will throw an exception. This prevents the shulker box item stack from being decremented while still placing the block, effectively duplicating the contents of the shulker box.

A command to give an item stack that reproduces this issue is as follows:

/give @s minecraft:shulker_box[custom_name="a",minecraft:block_entity_data={id:shulker_box,CustomName:""}]

There are reports of this happening in survival worlds, which is of course more severe than a specific command producing the item. This is possibly from a convoluted chain of data fixes (pre-1.13 through 1.20.5?) producing an item stack similar to the above command.

Fixed

haykam

[Mojang] Bartosz Bok

2024-04-25, 07:07 PM

2024-04-29, 09:36 PM

2024-04-26, 09:12 AM

0

1

Confirmed

Very Important

Platform

Items, Networking

1.20.5

1.20.6 Release Candidate 1