mojira.dev
MC-268877

Beehives/bee nests in inventory lose honey level after converting to newer world version

The bug

Beehives/bee nests in inventory lose honey level after converting to the latest snapshot.

To reproduce

  1. Create a new creative world in 1.20.4.

  2. Place down a beehive and a bee nest.

  3. Use a debug stick and left-click twice, then right-click until honey_level is set to 5.

  4. Break the beehive and nest and collect them.

  5. Save and exit.

  6. Reload the same world in 24w10a.

Expected result

The honey level of the items would stay the same.

Observed result

In 24w09a

The honey level of the items is set to 0.

This outputs the following in the log:

[20:22:01] [Server thread/ERROR]: Tried to load invalid item: 'Not a string missed input: {honey_level:5} missed input: {"minecraft:block_state":{honey_level:5}}'
[20:22:01] [Server thread/ERROR]: Tried to load invalid item: 'Not a string missed input: {honey_level:5} missed input: {"minecraft:block_state":{honey_level:5}}'

In 24w10a

The honey level of the items is set to "true". This does not fix the issue, and the nest stays with an empty honey level.

Linked issues

Comments 2

This issue is NOT fixed in 24w10a, as while the tag is converted, it instead converts to

"minecraft:block_state": {honey_level:"true"}

, which does not correctly apply the honey level when placed again (defaults to 0).

Can confirm not fixed in 24w10a.

ampolive

gegy

Plausible

Platform

Important

Datafixer

24w09a, 24w10a, 24w13a

24w10a, 24w14a

Retrieved