mojira.dev
MC-312425

tooltip_display using hidden_components with components removed in 26.3 throw Serialization warning

  • Short description of the issue

    • If you have a item with swing_animation in tooltip_display using hidden_components previous to 26.3 and update the console show a warning for serialization.

  • Steps to reproduce the issue

    • In 26.2 create a world

    • Run:

      /give @s minecraft:diamond_sword[minecraft:tooltip_display={hidden_components:["minecraft:swing_animation","minecraft:consumable"]}]
    • Close world

    • Copy World to 26.3

    • Load the world and see console/logs where a error display

  • Expected result

    • The component its removed or replaced with attack_animation and interact_animation

  • Actual result

    • The component its removed and console throws an warning

      [09:38:48] [Server thread/WARN]: [net.minecraft.server.network.config.PrepareSpawnTask] Serialization errors:
      ServerPlayer['MrDoc94'/1403, l='ServerLevel[Paper-DataConverter-31]', x=-35.86, y=69.00, z=-2.15]:
        Failed to decode value '{Slot:1b,components:{"minecraft:tooltip_display":{hidden_components:["minecraft:swing_animation","minecraft:consumable"]}},count:1,id:"minecraft:diamond_sword"}' from field 'Inventory' at index 1': Unknown registry key in ResourceKey[minecraft:root / minecraft:data_component_type]: minecraft:swing_animation missed input: {"minecraft:tooltip_display":{hidden_components:["minecraft:swing_animation","minecraft:consumable"]}} 

PD: I think this also affects other components removed in 26.3 with the tooltip_display

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

Doc

(Unassigned)

Unconfirmed

26.3

Retrieved