mojira.dev
MC-4634

Can't remove partial xp bars from the "xp -1L" command when you're between level 0 and 1

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.

Linked issues

Comments 8

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

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 😞

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

Love you dinnerbone, thanks so much!

Broke again in the newest snapshot, cloning issue.

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

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?

trazlander

Nathan Adams

Confirmed

command, command_block, experience, level

Minecraft 1.4.5, Snapshot 12w50a

Snapshot 12w50b

Retrieved