1

How can you get scoreboard scores to surpass the limit of 2147483647?

jctitan98's Avatar jctitan983/24/20 5:56 am
1 emeralds 527 8
5/9/2020 12:55 am
PaintsplattersMC's Avatar PaintsplattersMC
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.
Posted by jctitan98's Avatar
jctitan98
Level 22 : Expert Cake
1

Create an account or sign in to comment.

8

Geegaz
04/17/2020 7:24 am
Level 67 : High Grandmaster Engineer
Geegaz's Avatar
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.
2
jctitan98
04/18/2020 1:22 am
Level 22 : Expert Cake
jctitan98's Avatar
My new map actually uses this and I've thought of it already before your reply was made. Thanks for the response though!
1
SireWhiteKnight
04/17/2020 6:53 am
Level 18 : Journeyman Dolphin
SireWhiteKnight's Avatar
Why would you need to do that?
1
HoboMaggot
03/24/2020 6:18 am
Level 52 : Grandmaster Blob
HoboMaggot's Avatar
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.
1
jctitan98
04/13/2020 1:58 am
Level 22 : Expert Cake
jctitan98's Avatar
I am very aware of this, I'm just asking how I can surpass this limit even with some .jar changes.
1
HoboMaggot
04/13/2020 3:12 am
Level 52 : Grandmaster Blob
HoboMaggot's Avatar
You probbaly have to recode nearly the whole game to change this
1
jctitan98
04/17/2020 6:39 am
Level 22 : Expert Cake
jctitan98's Avatar
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.
1
PaintsplattersMC
05/09/2020 12:55 am
Level 40 : Master uwu
PaintsplattersMC's Avatar
its a java limitation. Not a minecraft limitation.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome