Mojira Archive
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"}}}'}'

Won't Fix

apple502j

2024-04-19, 01:33 PM

2024-04-23, 07:08 AM

2024-04-23, 07:08 AM

2

2

Confirmed

(Unassigned)

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

-