How do I make an XP-draining effect?

Started by MikaeleHD on Sun, 11/28/2021 - 12:13

Topic category: Advanced modding

Last seen on 02:13, 20. May 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make an XP-draining effect?
Sun, 11/28/2021 - 12:13

So the idea of the effect is that to activate - it requires it to drain your XP - in exchange you get buffed in strength and resistance. I wanted to know all the procedures and variables required for this unique effect.

Last seen on 05:15, 15. May 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
try running command relative…
Wed, 12/01/2021 - 15:52

try running command relative to player "/xp @s add -(xp to decrease)"

Last seen on 02:13, 20. May 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know how to do that…
Sat, 12/11/2021 - 00:29

I don't know how to do that in the procedure and why that when I can "remove XP from player"

Last seen on 05:15, 15. May 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
f
Sat, 12/11/2021 - 04:03

f

Last seen on 02:37, 11. May 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For this procedure, is the…
Thu, 01/27/2022 - 12:17

For this procedure, is the effect active when the player is holding a specific item?
Does it need to be activated through other means?
it is when a sword, or other attack method is in the main hand?
Is it activated through a GUI?
If the player doesn't have exp to use, what happens? [Besides not having the buffs of strength and resistance]
How much exp does it cost?
What Strength / Resistance level?

Last seen on 02:37, 11. May 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I've managed to create an…
Fri, 01/28/2022 - 01:45

I've managed to create an example for possibly what you're looking for, @MikaeleHD.
Since I'm unsure as to where to put the example on here, I decided to upload it to my host.
You can download and import it to your MCreator software as an example project for reference.

[ View Website]

[ Virus Total Report ]

File > Import workspace from shareable zip...
Find "Drain_EXP_HP_GUI_Example.zip" in your downloads or where you saved it.
and you should be able to run it directly to make sure it still is working, and copy code as needed,
or If you need more help, consider checking out my profile to email me.