Currently using the command "/xp -5 @s" returns the error 'Cannot give player negative experience points'. Where as on Java, the command can be used to take experience.
Steps To Reproduce:
Run the command "/xp -5 @s"
Observe that an error is given
Expected Results:
Experience can be taken from a player without having to use the level part of the command
Observed Results:
Experience cannot be taken from a player unless the level part of the command is used
Comments 4
You can remove one level from a player using "/xp -1L @s" then one level will be removed from yourself but you can't remove one experience from a player because if you do "/xp -1 @s" then an error will occur "Cannot give player negative experience points". I think it is a bug and it should be fixed soon.
I think this is work as intended. This function has been for a while and I also thought I can remove xp not the level. There is only a target selector for level (l, lm) but there is no for specific xp
Yeah me too. Its especially annoying because I utilise xp levels for gameplay in my minigame world.