1
Can I have some command block help?
Well, I'm working on a minigame, but in order to complete it I need to be able to remove exp from a player using the new command block. However, using the command block you can only add exp. Is this a bug or is it part of the command block itself? Is - an invalid string in the command block?
Create an account or sign in to comment.
1
1
I can't see a way that you can take individual XP. But, you can take away XP in increments of levels.
To Give XP:
Example: /xp 30 MarcoPolo84
Here's the secret:
To Take Away:
You can put a minus sign before the amount to take away individual levels.
But, you cannot enter floats(coders term for decimals). This won't work:
To Give XP:
/xp %AMOUNT% %PLAYER%
Example: /xp 30 MarcoPolo84
Here's the secret:
Click to reveal
You can put an L after the amount to give away an amount of levels. Like this:
/xp 3L MarcoPolo84
This will give you three levels
/xp 3L MarcoPolo84
This will give you three levels
To Take Away:
You can put a minus sign before the amount to take away individual levels.
/xp -%AMOUNT%L %PLAYER%
/xp -3L MarcoPolo84
But, you cannot enter floats(coders term for decimals). This won't work:
/xp -2.5 MarcoPolo84