I am working on a new map on Minecraft and I was wondering if anyone knew how to testfor XP gain. For example if I gained 10 levels it would output a signal, and if I gain another 10 levels, it would output another signal. Does anyone know how to do this?
You can use the selector
l, lm to test for experience levels.
l means maximum experience level,
lm means minimum.
To test for a player with at least 10 levels of experience:
If you only want the
testfor to succeed once for each player, add a tag to the player:
/scoreboard players tag @a[lm=10] add xp10
And change the command to: