Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-271574

Inlining a painting variant causes players to disconnect when receiving entity data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w20a
    • 24w18a, 24w19b
    • None
    • Confirmed
    • Networking
    • Important
    • Platform

      A painting with an inlined variant can be summoned with the following command:

      /summon minecraft:painting ~ ~ ~ {variant:{asset_id:"",width:1,height:1}}
      

      Upon executing this command, any observing players including the placer will get kicked from the server with the following message:

      Internal Exception: io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:set_entity_data'
      

      When trying to reconnect, because the painting still exists in the world, the player will get kicked again.

      The following item also produces this issue, meaning any creative player can cause a chunk ban for themselves and others:

      /give @s minecraft:painting[minecraft:entity_data={id:painting,variant:{asset_id:"",width:1,height:1}}]
      

            gegy1000 [Mojang] Gegy
            haykam haykam
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: