How to remove a specific amount of Xp (1.12.2)

Started by Pixelblock_Gaming on Sun, 05/09/2021 - 10:57

Topic category: Help with modding (Java Edition)

Last seen on 18:40, 30. May 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to remove a specific amount of Xp (1.12.2)
Sun, 05/09/2021 - 10:57

I tried to replace an item with another once right clicked. That worked than I tested if the player was at least Lv3 and wanted to remove 20XP.

But there is no part that says "remove _ EXP". The only workaround I could think of was typing a negative number in add EXP, but that made the Xp bar glitch out and players were stuck on thier level, even if more xp were removed then should be possible

Any ideas?

Last seen on 23:32, 17. May 2021
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Now I can't open mcreator…
Sun, 05/09/2021 - 21:08

Now I can't open mcreator
but I create something like "set xp" 
and get xp
If there is then I could use something like:
set xp (get xp - 20xp)

Last seen on 04:31, 11. Jun 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Mon, 05/10/2021 - 19:46

:)

Last seen on 04:31, 11. Jun 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
type "XP" into the procedure…
Mon, 05/10/2021 - 19:46

type "XP" into the procedure search bar