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

Firework Star item displays have inconsistent color updates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 3, 1.20.5 Pre-Release 4
    • None
    • Confirmed
    • Commands, Items
    • Very Important
    • Platform

      This issue started with 1.20.5 Pre-Release 3.

      If you summon multiple item displays with a firework star that have different colors for the explosion, then try to update them with a different color, the behavior is inconsistent. Sometimes one will update, but the other won't even though the data itself does update. And if you update another data property on one of the item displays, the colors seem to swap with other item displays nearby.

       

      Steps to Reproduce:

      1. Summon two item displays with a firework star item

      /summon minecraft:item_display ~ ~ ~ {item:{id:"firework_star",components:{"minecraft:firework_explosion":{shape:"small_ball",colors:[I; -1]}}}}
      
      /summon minecraft:item_display ~ ~ ~ {item:{id:"firework_star",components:{"minecraft:firework_explosion":{shape:"small_ball",colors:[I; -1]}}}} 

      2. Try to change the colors value on one of the displays

      /data modify entity @e[type=minecraft:item_display,limit=1,sort=nearest] item.components."minecraft:firework_explosion".colors set value [I; -65536]
      

      3. The color may or may not update from step 2, but if you quit and rejoin the world, the colors of the item displays will either be still white, or both will change to red.

       

      Observed Results:

      The colors of the different item displays change to different values other than what they contain in their item data.

      Expected Results:

      The color of the firework star item display should remain consistent with the data contained in item.components.minecraft:firework_explosion.colors

       

      Screenshots/Videos:

      After modifying the colors data on one of the firework star items:

      After quitting and rejoining the world:

       

      Notes:

      It also happens even when you summon multiple item displays and try to merge the display with a firework star item and a firework explosion, the color is inconsistent.

      It may have something to do with the item data serialization issue that was fixed in 1.20.5 Pre-Release 3.

        1. javaw_qqCLfaSZ8s.jpg
          16 kB
          michaelslife
        2. javaw_SwDKsDE3nx.jpg
          15 kB
          michaelslife

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

              Created:
              Updated:
              Resolved:
              CHK: