Minecraft wiki entry for Command_blocks_and_functions, associated text: Subtracting experience can work as a currency, by using the command /experience add @p[level=3..] -3 levels. The minimum experience for the command to work can be listed inside the brackets.