1
/scoreboard help
Can anyone help me with a scoreboard command? I want to make one that shows the stat times slept in bed on each separate map for single player. The "Times Slept in Bed" stat is listed on the statistics section for single player maps but I don't see it listed as part of the scoreboard parameters in the wiki.
Thanks!
Thanks!
Create an account or sign in to comment.
5
1
Did you use:
And yes, it's case sensitive.
/scoreboard objectives setDisplay sidebar sleeping
?And yes, it's case sensitive.
1
It worked! I decided to try and set the display to sidebar with "setDisplay sidebar"
but the scoreboard does not appear. Is setDisplay case sensitive or am I doing something else wrong?
Thanks!
but the scoreboard does not appear. Is setDisplay case sensitive or am I doing something else wrong?
Thanks!
1
The one I gave will work in multiplayer as well, it keeps track of every player individually.
Once you've typed that command in chat, you can display the scores on the tab screen using
If you still want the more advanced code (which will only make the score go up when a player fully sleeps and thus skips the night) you will have to wait till tomorrow.
Once you've typed that command in chat, you can display the scores on the tab screen using
/scoreboard objectives setDisplay list sleeping
If you still want the more advanced code (which will only make the score go up when a player fully sleeps and thus skips the night) you will have to wait till tomorrow.
1
It's just for single player mode so I think that will work, just for my own knowledge could you write he more advanced code as well? is that the entire code, I think there is more to make it show on the tab bar or side or over my player head. Can you please right out the whole code? This is the first time I have done any "programming" of this type, or is the rest of it on the wiki somewhere.
Thanks!
Thanks!
1
/scoreboard objectives add sleeping stat.sleepInBed
This will increment whenever a player enters a bed (whether or not they fully sleep the night away). If you only want it to increment when a player fully sleeps, let me know and I will see what I can do (will be more complex though).