mojira.dev
MC-66240

XPOrbs with negative values

I was messing around with /entitydata and made a XPOrb have negative a value

What I expected to happen was it to take away xp

When I picked it up it only removed the xp on the bar not the level and I can no longer gain xp.

Steps to Reproduce:
1. /summon XPOrb ~10 ~ ~ {Value:-100} (use /entitydata @e[type=XPOrb] {} to check)
2. pick it up
3. Notice that it only removes xp on the bar
4. splash some xp bottles on you
5. Notice that when you pick them up they give no xp (same thing with /xp)

Linked issues

Comments 2

Negative values aren't supported.

Please do not report issues related to NBT tags as bugs. If changing NBT via commands does not have the expected effect, that's always considered "working as intended".

nick haines

michael

Unconfirmed

Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d

Retrieved