query(e, 'score')

View on GitHub

Syntax

query(entity, 'score')

Numbers related to player’s xp. xp is the overall xp player has, xp_level is the levels seen in the hotbar, xp_progress is a float between 0 and 1 indicating the percentage of the xp bar filled, and score is the number displayed upon death