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

A marker's data tag can be shared among multiple markers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 21w15a
    • Fix Version/s: 21w16a
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      A marker's data tag can be shared among multiple markers.

      When an entity teleports to another dimension, the entity in the current dimension is removed and its copy is created in the destination dimension. If you teleport an entity to multiple dimensions, you can create the corresponding number of copies of it. When the teleport target is a marker entity, data tag sharing occurs among the copies because a marker's data tag is not copied on serialization.

      How to reproduce

      1. Enable the datapack in Attachments.
      2. Execute
        /function mc-223382:init
      3. Execute
        /debug function mc-223382:run

        Markers' data tags are modified by modifications to other markers. The markers e2 and e3 are now in a shared state, and any modifications to one's data tag will be reflected in the other.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            intsuc intsuc
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: