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

Killing an entity and assigning a score in the same tick leads to leftover scoreboard entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.17, 1.17.1 Pre-release 1
    • None
    • Unconfirmed
    • (Unassigned)

      When an entity is killed and a score is assigned to that entity in the same tick, but after it was killed (using functions and @s), a scoreboard entry is created that can't be deleted easily. One would expect scoreboard entries of dead entities to be removed.

      How to reproduce

      1. Create a function with two commands:
        kill @s
        scoreboard players set @s <some_objective> 1
      2. Execute this function as some entity.
      3. Inspect the scoreboard using the sidebar
      4. Notice a scoreboard entry with the UUID of the entity that was killed by the function.

       

      This behavior was not present before 1.17.

            Unassigned Unassigned
            Bluefire610 Bloo
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: