1
How can you get scoreboard scores to surpass the limit of 2147483647?
I am just wondering how you can get scoreboard scores to surpass the limit of 2147483647.
If a player or target has this score in a scoreboard and you increment it, it will roll over to the negatives, resulting in the score being -2147483648.
Now this is just a simple overflow, but if I could get this limit to be shattered...
By the way, almost no one has ever asked this specific question, so yeah.
If a player or target has this score in a scoreboard and you increment it, it will roll over to the negatives, resulting in the score being -2147483648.
Now this is just a simple overflow, but if I could get this limit to be shattered...
By the way, almost no one has ever asked this specific question, so yeah.
Create an account or sign in to comment.
8
Hum, since this is a data limit you can't go over it.
However you can use a workaround, like 2 scores to store data, or opt for another way to store the number (which I don't know).
If you have 2 scores and you're familiar with commands, you can detect whenever the score goes over 1,000,000,000. When it does, you add 1 to the 2nd score and substract 1,000,000,000 to the 1rst. This way you can technically go over 2147483647, but you'll have to use some more tricks to show the entire number.
However you can use a workaround, like 2 scores to store data, or opt for another way to store the number (which I don't know).
If you have 2 scores and you're familiar with commands, you can detect whenever the score goes over 1,000,000,000. When it does, you add 1 to the 2nd score and substract 1,000,000,000 to the 1rst. This way you can technically go over 2147483647, but you'll have to use some more tricks to show the entire number.
My new map actually uses this and I've thought of it already before your reply was made. Thanks for the response though!
Why would you need to do that?
Its limited by the same reason you can only get 255 as the maximum amplifier for effects or the build height is up to 256.
The data type can only support that much.
The data type can only support that much.
I am very aware of this, I'm just asking how I can surpass this limit even with some .jar changes.
You probbaly have to recode nearly the whole game to change this
You're probably right. Maybe a mod can do this, or maybe at least someone out there could make a modded version of Minecraft that would let me do this.
its a java limitation. Not a minecraft limitation.