In terms of servers like Mineplex, they use plugins to create the scoreboards rather than command blocks, but the same approach is taken.
At the current moment it is not possible to display two 'objectives' as such. Instead, you must use fake players as objectives instead.
For example, if you wanted to have two objectives, distance walked (cm) and distance flown (cm) you would have command blocks on a loop (clock) with these commands:
/scoreboard players operation WalkDistance Scores = Sulphate Walked
/scoreboard players operation FlyDistance Scores = Sulphate Flown
In these commands, 'FlyDistance' and 'WalkDistance' are the fake players, 'Scores' is the scoreboard title, and 'Sulphate' is the player name. 'Walked' and 'Flown' are the scores being tracked.
Hope this helped!
There can only ever be one objective set to display on the sidebar. What you can do however, and what you seem to be trying to do, is have one score displayed, then set this score for different "fake players" to your scores in the different objectives. Note that this will only work for one player.
It'll look something like this, where Scores
is the one set to display in the sidebar:
Note that I've chosen different names for the objective name (e.g: Deaths
), the objective type (e.g: deathCount
), and the fake player's name (e.g: Number_Of_Deaths
).
You'll first need to add all of the objectives that you'll be using:
/scoreboard objectives add Deaths deathCount
/scoreboard objectives add Kills totalKillCount
/scoreboard objectives add FlightDistance stat.flyOneCm
/scoreboard objectives add Scores dummy
On a clock, you'll then want to run these commands which set the fake player's score to your score in the corresponding objective:
/scoreboard players operation Number_Of_Deaths Scores = Rehunter Deaths
/scoreboard players operation Number_Of_Kills Scores = Rehunter Kills
/scoreboard players operation Distance_Flown Scores = Rehunter FlightDistance
This should then make the sidebar look something like:
Best Answer
I have not tried this, but I would assume the limit to be the limit of an ArrayList, because Minecraft loads the scoreboards into a list when reading the NBT file
scoreboards.dat
. I assume this is an ArrayList, because that's the most common type of list.The specific behaviour of growing an ArrayList (and therefore the exact limit) depends on the Java version, but in most modern versions your limit should be:
1 485 738 814
So don't worry about running out any time soon.
My test world has a
scoreboard.dat
file that occupies 2058 bytes and I have 69 scoreboards, most of them holding only one or a few entries. So an optimistic guess would be that when you have enough scoreboards to crash your game, thescoreboard.dat
file would be over 41 GB big. Most computers don't even have enough RAM to load that file into it, so you would get anOutOfMemoryError
way before. With the default launcher profile this would happen at around 36 000 000 scoreboards (or a lot earlier, because other things also need RAM). But I would guess that the game should definitely be able to deal with one million scoreboards just fine, even on a weak computer.