Started by
Casey888l
on
Topic category: Help with MCreator software
I'm tryna make a mod with magic spells and stuff but I can't figure out a way to get it to reduce xp when its used.
Topic category: Help with MCreator software
I'm tryna make a mod with magic spells and stuff but I can't figure out a way to get it to reduce xp when its used.
If it's vanilla XP (the one above the action bar), just do this procedure :
if player's XP amount > x (x being the amount of xp the spell will consume)
give -x XP to player
launch the spell
the if is intended to prevent the player from using the spell if he hasn't enough XP