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:
Add 5 xp
/xp add @s 5
Set xp to 0
/xp set @s 0
Check XpTotal
/data get entity @s XpTotal
--> "@s has the following entity data: 5
Linked issues
Comments 2
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.
Does MC-118008 describe your issue?