[MC-4634] Can't remove partial xp bars from the "xp -1L" command when you're between level 0 and 1 Created: 14/Dec/12  Updated: 07/Aug/20  Resolved: 14/Dec/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.5, Snapshot 12w50a
Fix Version/s: Snapshot 12w50b

Type: Bug
Reporter: TrazLander Assignee: [Mojang] Nathan Adams
Resolution: Fixed Votes: 0
Labels: command, command_block, experience, level

Issue Links:
Relates
relates to MC-99712 "/xp -<amount>" doesnt not work, but ... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Creative

 Description   

Can't remove partially filled exp bars from a player. Even if they're below level 1 and you try to subtract 1 level from them.



 Comments   
Comment by Koa Neuva [ 20/May/18 ]

I'm not going to pretend I know how hard it is to code this stuff, but couldn't you do an equation that grabs the level and % to the next one out of the amount of experience you have (square or cube roots work pretty well, i.e. Cookie Clicker), that way we can actually use a "minus xp" command?

Comment by Sergio [ 01/May/17 ]

This still exist in 1.11.2, did you figure it out @Dinnerbone ?

Comment by Abandoned account [ 17/Feb/13 ]

Broke again in the newest snapshot, cloning issue.

Comment by Abandoned account [ 21/Dec/12 ]

Love you dinnerbone, thanks so much!

Comment by TrazLander [ 16/Dec/12 ]

I don't really need to take bits of xp away, just clear all levels and partial xp bar. So this accomplished that, thanks

Comment by [Mojang] Nathan Adams [ 15/Dec/12 ]

You can't give negative exp, only negative levels. It sucks but I just haven't figured out how to make that work yet, sorry

Comment by Abandoned account [ 15/Dec/12 ]

Thanks for fixing; does this also fix the

/xp -1 Player

command? Currently it says that you can't give negative xp, however it works for xp levels

/xp -1L Player

Comment by Kumasasa [ 14/Dec/12 ]

Confirmed.

Generated at Sun Jan 12 12:05:13 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.