mojira.dev
MCPE-146771

XP Cannot Be Taken With The XP Command

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

Yeah me too. Its especially annoying because I utilise xp levels for gameplay in my minigame world.

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

Affects version 1.20.32

Gruntastic

(Unassigned)

654797

Confirmed

Multiple

command, experience, parity

1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.17.41 Hotfix, 1.18.2 Hotfix, ..., 1.19.63, 1.20.32 Hotfix, 1.20.50.22 Preview, 1.20.50.23 Preview, 1.20.41 Hotfix

Retrieved