How to remove a specific amount of Xp (1.12.2)

Started by Pixelblock_Gaming on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to remove a specific amount of Xp (1.12.2)

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?

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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)

Joined Nov 2020
Points:

User statistics:

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

:)

Joined Nov 2020
Points:

User statistics:

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

type "XP" into the procedure search bar

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Pepper, as far as im aware…
Mon, 08/09/2021 - 23:07

Pepper, as far as im aware this code block is MCreator 2021 exclusive.

I should have probably elaborated that im still stuck on MCreator 2020.2 since I want to release that feature in my 1.12.2 Mod.

 

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Run command in name of …
Tue, 08/10/2021 - 01:28

Run command in name of "target entity":

Create text with:

  • /xp @s -
  • (Your Number)
  • L

I suppose it is this way but i dont really know the syntax back in 1.12.2

PS;There is a plugin to add 1.12.2 support to Mcreator 2021

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks Supermod! This plugin…
Wed, 10/13/2021 - 21:26

Thanks Supermod! This plugin could realy solve my problems. Also sorry for responding so late. I took a break from MCreator