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

Entities with the same UUID share the same score

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 20w20b, 20w21a, 1.16 Pre-release 5, 1.16.1, 20w29a, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w15a, 21w16a, 21w19a, 1.17 Pre-release 1, 1.17, 1.17.1, 21w37a, 1.18.1, 1.19.1, 1.19.2, 1.19.3 Release Candidate 1, 1.19.3, 23w03a, 1.19.4, 23w18a, 1.20.2, 24w33a, 1.21.1
    • Confirmed
    • Entities

      The bug

      Since entities' scores are serialized by their UUID, entities with the same UUID in each dimension share their score and cannot have their own score.

      How to reproduce

      1. Add a scoreboard objective mc-184266.
        /scoreboard objectives add mc-184266 dummy
      2. Mark the chunk [0, 0] in the overworld to be force loaded.
        /execute in minecraft:overworld run forceload add 0 0
      3. Mark the chunk [0, 0] in the nether to be force loaded.
        /execute in minecraft:the_nether run forceload add 0 0
      4. Add an item frame with UUID 0-0-0-0-2cfca in the overworld.
        /execute in minecraft:overworld run summon minecraft:item_frame 0 0 0 {UUID: [I; 0, 0, 0, 184266], Fixed: true}
      5. Add an item frame with UUID 0-0-0-0-2cfca in the nether.
        /execute in minecraft:the_nether run summon minecraft:item_frame 0 0 0 {UUID: [I; 0, 0, 0, 184266], Fixed: true}
      6. Set the overworld entity's score to 1.
        /execute in minecraft:overworld run scoreboard players set @e[x=0, y=0, z=0, dx=0] mc-184266 1
      7. Remove the nether entity.
        /execute in minecraft:the_nether run kill @e[x=0, y=0, z=0, dx=0]
      8. Get the overworld entity's score.
        /execute in minecraft:overworld run scoreboard players get @e[x=0, y=0, z=0, dx=0, limit=1] mc-184266

        Can't get value of mc-184266 for 00000000-0000-0000-0000-00000002cfca; none is set

            Unassigned Unassigned
            intsuc intsuc
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: