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
Enable the datapack in Attachments.
Execute
/function mc-223382:initExecute
/debug function mc-223382:run→ ❌ Markers'
datatags are modified by modifications to other markers. The markerse2ande3are now in a shared state, and any modifications to one'sdatatag will be reflected in the other.
Fixed in 21w16a. Markers'
datatags are now copied on serialization.