1

Can I have some command block help?

ThaLegendaryNoob's Avatar ThaLegendaryNoob10/9/12 12:06 am
1 emeralds 209 1
4/5/2015 11:52 am
marcopolo84's Avatar marcopolo84
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?
Posted by ThaLegendaryNoob's Avatar
ThaLegendaryNoob
Level 65 : High Grandmaster Pyro
181

Create an account or sign in to comment.

1

1
04/05/2015 11:52 am
Level 33 : Artisan Geek
marcopolo84
marcopolo84's Avatar
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:

/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


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
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome