Command Block Args help?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

whizzball1

New Member
Jul 29, 2019
2,502
0
0
I am trying to remove 15 Levels of XP from a player when the Command Block is activated, but regardless of what the player's level is, the command block executes the command, even if the player has 5 levels.
How do I change it so it only executes if the player has 15 or more levels?
My current command is:
/xp -15L @p
What should I add?
 

immibis

New Member
Jul 29, 2019
884
0
0
If the player has less than 15 levels it will choose the closest player to the command block that does have 15 levels.