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

playerdata XpTotal does not update itself when changing Xp with "/xp set"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 2
    • None
    • operation system: Microsoft Windows 10 Home (64-bit)

      Java version: 10.0.1
    • Unconfirmed
    • Commands

      The Bug:

      The value of the XpTotal tag does not update itself when changing Xp (no matter if level or points) with the command "/xp set ...". It can only be changed by the command "/xp add ..."

      Score is affected in the same way as XpTotal.

      The command "/xp query ..." is not affected.

       

      How to reproduce:

      1. Add 5 xp
        /xp add @s 5
        
      1. Set xp to 0
        /xp set @s 0
      1. Check XpTotal
        /data get entity @s XpTotal
        --> "@s has the following entity data: 5

            Unassigned Unassigned
            Exafit Paul Becker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: