The experience bar disappears when too many levels are given to the player
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels by using the command provided below.
/xp add @s 1232323232 levels
- Look at your experience bar.
- Take note as to whether or not the experience bar disappears when too many levels are given to the player.
Observed Behavior:
The experience bar disappears.
Expected Behavior:
The experience bar would not disappear.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
Linked Issues
is duplicated by6
- Unresolved
[Mod] Avomapie595
- 17
- 8
- Confirmed
- UI
1.8.3 - 1.21.4
1.8.3 1.8.4 1.8.5 1.8.7 1.8.9 16w05b 1.10.2 16w35a 16w36a 1.12.2 17w50a 18w20c 1.13.1 19w07a 20w06a 1.16-pre5 1.16.4 20w48a 20w51a 21w03a 1.16.5 21w05a 21w05b 21w06a 21w07a 21w08b 21w10a 21w11a 21w13a 21w14a 21w15a 21w16a 21w17a 21w19a 21w20a 1.17-pre1 1.17-pre3 1.17-pre4 1.17-pre5 1.17-rc1 1.17-rc2 1.17 1.17.1-pre1 1.17.1-pre2 1.17.1-pre3 1.17.1-rc1 1.17.1 21w38a 21w39a 21w40a 21w41a 21w42a 21w43a 21w44a 1.18-pre1 1.18-pre7 1.18 1.18.1 22w03a 22w05a 22w06a 22w07a 1.18.2-rc1 1.18.2 22w17a 1.19 1.19.2 22w43a 1.19.3 1.19.4 1.20 1.20.1 1.20.4 23w51b 24w11a 1.20.6 24w19b 1.21 24w33a 1.21.1 1.21.3 1.21.4
Created Issue:
Exp bar disappears when too many levels are given to the player
When using /xp XXL PlayerName where XX is a number and PlayerName is the player to give levels to, if use enough times with high numbers will cause the exp bar to disappear.
Environment
Windows 8.1
relates to
Windows 8.1
Windows 8.1
Ubuntu 14.04 LTS
is duplicated by
When using /xp XXL PlayerName where XX is a number and PlayerName is the player to give levels to, if use enough times with high numbers will cause the exp bar to disappear.
Code analysis by Marcono1234 can be found in this comment .
is duplicated by
When using /xp XXL PlayerName where XX is a number and PlayerName istheplayertogivelevelsto, if use enough times with high numbers will cause the exp bar to disappear.
Code analysis by Marcono1234 can be found in this comment.
The bug
Experience bar disappears when too many levels are given to the player.
Code analysis
Code analysis by Marcono1234 can be found in this comment.
Windows 8.1
Ubuntu 14.04 LTS
Experience bar disappears when too many levels are given to the player
relates to
is duplicated by
The bug
Experience bar disappears when too many levels are given to the player.
Code analysis
Code analysis by Marcono1234 can be found in this comment.
The bug
Experience bar disappears when too many levels are given to the player.
How to reproduce
/xp add @s 1232323232 levelsCode analysis
Code analysis by Marcono1234 can be found in this comment.
is duplicated by
The bug
Experience bar disappears when too many levels are given to the player.How to reproduce
/xp add @s 1232323232 levelsCode analysis
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels through the use of the following command:
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels through the use of the following command:
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in
this comment.The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels through the use of the following command:
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
Experience bar disappears when too many levels are given to the playerThe Bug: The experience bar disappears when too many levels are given to the player
The Bug:The experience bar disappears when too many levels are given to the player
is duplicated by
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels
through the use of the following command:/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in
this comment.The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Code Analysis:Code analysis by Marcono1234 can be found in
this comment.The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Expected Behavior:
The expected behavior would be that the experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Expected Behavior:
The expected behavior would be that the experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in
this comment.The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Expected Behavior:
The expected behavior would be that the experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- →
Notice how the experience bar disappears when too many levels are given to the player.
Expected Behavior:The
expected behavior would be that theexperience barwould notdisappear when too many levels are given to the player.
Code Analysis:Code analysis by Marcono1234 can be found in
this comment.The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- Look at your experience level.
Observed Behavior:
The experience bar disappears when too many levels are given to the player.
Expected Behavior:
The experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- Look at your experience level.
Observed Behavior:
The experience bar disappears when too many levels are given to the player.
Expected Behavior:
The experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in
this comment.The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- Look at your experience level.
Observed Behavior:
The experience bar disappears when too many levels are given to the player.
Expected Behavior:
The experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
is duplicated by
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- Look at your experience
level.Observed Behavior:
The experience bar disappears when too many levels are given to the player.
Expected Behavior:
The experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- Look at your experience bar.
- Take note as to whether or not the experience bar disappears when too many levels are given to the player.
Observed Behavior:
The experience bar disappears when too many levels are given to the player.
Expected Behavior:
The experience bar would not disappear when too many levels are given to the player.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels.
/xp add @s 1232323232 levels
- Look at your experience bar.
- Take note as to whether or not the experience bar disappears when too many levels are given to the player.
Observed Behavior:
The experience bar disappears
when too many levels are given to the player.Expected Behavior:
The experience bar would not disappear
when too many levels are given to the player.Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
The Bug:
The experience bar disappears when too many levels are given to the player.
Steps to Reproduce:
- Give yourself lots of levels by using the command provided below.
/xp add @s 1232323232 levels- Look at your experience bar.
- Take note as to whether or not the experience bar disappears when too many levels are given to the player.
Observed Behavior:
The experience bar disappears.
Expected Behavior:
The experience bar would not disappear.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.
Duplicates MC-79545
Thank you for your report!
We're tracking this issue in MC-79545, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit
Duplicate of MC-79545.
Thank you for your report!
We're tracking this issue in MC-79545, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicate of MC-79545.
Thank you for your report!
We're tracking this issue in MC-79545, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.




Confirmed for
It seems to start always with these (and maybe more numbers):
The end however seems to vary depending on which number you add
confirmed for 1.8.7
Confirmed for
Please link to this comment in the description
The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.
The problem here is rather that the method net.minecraft.entity.player.EntityPlayer.xpBarCap() limits the xp value. Adding experience (not level) after that has no effect or will not work correctly anymore. This limit is however not respected when adding levels. In 1.9 this maximum experience amount for a level is calculated like this
The returned number can have values between -2^31 and 2^31 - 1. This means if the experience level is higher than 238609311 the required experience amount to level up is invalid, because it will overflow and become negative:
Relates to
MC-122715(command argument limit gone)Still exists in 18w20c.
Confirmed for 1.13.1.
No response for a year.
However, confirmed for 20w06a
Confirmed in 1.16-pre5.
Can confirm in 20w48a. Here's the command I used to reproduce.
Can confirm in 20w51a. I'm willing to take ownership of this ticket since the reporter has been inactivate since April 2015.
Can confirm in 21w03a.
Can confirm in 21w06a
can confirm for 1.17.1 as i accidentally made a dupe report lol
this number is very close to the 32-bit integer limit maybe that's the problem
But it didnt overflow yet
Can confirm this behavior in 21w44a
can confirm in 1.19.4