2

I have had the objective KillCount on the sidebar for some time now, but I recently discovered the possibility of several objectives. Therefore I have been trying to add the deathCount, killCount and Distance by Elytra (unsure of the last ones objective name). I have never really used the scoreboard command and tried the following;

/scoreboard players operation flightDistance Scores = Rehunter stat.flyOneCm 

(Again, unsure how to address this one right!)

/scoreboard players operation NumberOfDeaths Scores = Rehunter deathCount
/scoreboard players operation NumberOfKills Scores = Rehunter totalKillCount

I added the objectives by command but no progress is counted and I don't know how to proceed. All help is appreciated, have been trying for a while to look it up but coudn't find a specific answer.

1 Answer 1

1

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:

Table illustrating objectives

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:

Final sidebar display

1
  • 1
    You can also have multiple scores normally and then just have redstone loop with commandblocks to change the view. You will see only one at time, but it will switch after periods of time. It can be easier to do (and it will work for all people same way). For more advanced setups everything is possible, but you would need A LOT of objectives etc, then it is easier to use some plugins that handle those things automatically. Sep 27, 2016 at 11:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .