PlayerEx

PlayerEx

5M Downloads

How to detect when player levels up?

BurgerBob886 opened this issue ยท 1 comments

commented

I'm creating a modpack and I wish to set up a quest via ftb quests, that will reward the player with xp the first time they level themselves up. How do I detect when a player's level increases?

commented

Hi there,
From a modding perspective, you can use this event from Data Attributes.

Otherwise, I'm not sure - if there are any ways to detect when the value of an attribute changes (i.e., with command blocks), this would also work since player level is just another attribute.

Hope that helps,
Thanks.