• Hey! Register here to create your account, engage with the community, and talk about what is new!

Is there a way to detect...

NineOfGaming

Active member
Overlord
Joined
Jul 12, 2021
Messages
51
Reaction score
5
1. a player picking up an experience orb

2. a player using an anvil (rename,enchant,repair doesn't mater)
 
Solution
You need 2 variables, lets call one "%default xpL" and one "%default xpP"
In a loop place 2 If Variables and check if the variable '%default xpL' is larger than the Game Value 'Experience Level', if it is, then the player has picked xp and if its less then the player used xp and do the same with the '%default xpP' and the Game Value 'Experience Progress'. And after the If's, set the '%default xpL' to the Game Value 'Experience Level' and the '%default xpP' to the Game Value 'Experience Progress'

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,245
Reaction score
349
You need 2 variables, lets call one "%default xpL" and one "%default xpP"
In a loop place 2 If Variables and check if the variable '%default xpL' is larger than the Game Value 'Experience Level', if it is, then the player has picked xp and if its less then the player used xp and do the same with the '%default xpP' and the Game Value 'Experience Progress'. And after the If's, set the '%default xpL' to the Game Value 'Experience Level' and the '%default xpP' to the Game Value 'Experience Progress'
 
Solution
Top Bottom