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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      operation system: Microsoft Windows 10 Home (64-bit)

      Java version: 10.0.1
    • Confirmation Status:
      Unconfirmed
    • Category:
      Commands

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: