mojira.dev
MC-270922

Upgrading a world with a text whose hover event is set to show empty item stack logs error

When upgrading a world contains a text (such as custom stack name, book, etc) with hoverEvent set to show_item an empty item stack, an error is logged.

Steps to Reproduce

  1. Run the following command in 1.20.4

    /give @s stick{display:{Name:'{"type":"text","text":"Air","hoverEvent":{"action":"show_item","contents":{"id":"air"}}}'}}
  2. Upgrade the world to 1.20.5-rc1

Expected Result
No error is logged.

Actual Result
An error is logged:

[22:28:07] [Server thread/ERROR]: Tried to load invalid item: 'No key value in MapLike[{"action":"show_item","contents":{"id":"air"}}]; Not a string: {"id":"air"}; Item must not be minecraft:air; Not a json array: {"type":"text","text":"Air","hoverEvent":{"action":"show_item","contents":{"id":"air"}}}; Not a string: {"type":"text","text":"Air","hoverEvent":{"action":"show_item","contents":{"id":"air"}}} missed input: {"minecraft:custom_name":'{"type":"text","text":"Air","hoverEvent":{"action":"show_item","contents":{"id":"air"}}}'}'

Linked issues

Attachments

Comments 2

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

apple502j

(Unassigned)

Confirmed

(Unassigned)

1.20.5 Release Candidate 1, 1.20.5 Release Candidate 2, 1.20.5 Release Candidate 3

Retrieved