mojira.dev
MC-152585

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

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

Linked issues

Comments 2

Does MC-118008 describe your issue?

Yes partly, it seems to be related to my problem. But with MC-118008 there is no indication that the change by "/xp set @s 1 points" does not change XpTotal either. There the focus is on the change by "/xp add @s 1 level". I don't know if that has the same cause.

Paul Becker

(Unassigned)

Unconfirmed

Commands

Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 2

Retrieved