Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-179129

Removing a variant component doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.62 Hotfix, 1.20.70.25 Preview
    • None
    • Confirmed
    • Multiple
    • 1192368

      The bug

      When the variant component is removed from an entity, it stays the same variant as it was before.

      How to reproduce

      1. Download and open the attached world. There's an axolotl; it's pink because it has no variant component (q.variant==0)
      2. Add a variant component: /event entity @e[type=axolotl] add_blue
      3. Now remove it: /event entity @e[type=axolotl] remove_blue

      Expected results
      The final command should revert the axolotl back to pink

      Observed results
      It stays blue

      Notes
      This also affects mark_variant and skin_id

            tryashtar [Mod] tryashtar
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: