This behavior was introduced in 26.1-snapshot-3.
The bug
When viewing the tooltip of a bundle containing an item stack with incompatible data, the game tends to render an empty item stack, causing it to crash with the following error:
The game crashed: rendering screen
Error: java.lang.IllegalStateException: Stack must be non-empty
Steps to reproduce
Create an item stack with incompatible data and put it into a bundle, or create a bundle containing an item stack with incompatible data. This can be done …
… with an item stack that has a
max_stack_itemvalue different from1and also has themax_damagecomponent.
One way to obtain such an item is to use the following command above a chest containing an item with themax_damagecomponent.data modify block ~ ~-1 ~ Items[0].components merge value {"minecraft:max_stack_size":99}data modify block ~ ~-1 ~ Items[0].components merge value {"minecraft:max_stack_size":99}… with an item stack that has a count greater than the
max_stack_itemcomponent.
One way to obtain such a bundle is to use the following command above a chest containing a bundle with an item with themax_stack_itemcomponent less thanvalue.data modify block ~ ~-1 ~ Items[0].components."minecraft:bundle_contents"[0].count set value <value>data modify block ~ ~-1 ~ Items[0].components."minecraft:bundle_contents"[0].count set value <value>
Hover the mouse cursor over the bundle.
Additional notes
The attached video shows some OBS Studio freezes and a cut between the first crash and opening the world again; neither corresponds to a bug in the game.
Thank you for helping us improve Minecraft! We saved your files: