1

/scoreboard help

PurpleSweetTart's Avatar PurpleSweetTart4/29/17 4:43 pm
1 emeralds 472 5
4/30/2017 11:50 am
Pepijn's Avatar Pepijn
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!
Posted by PurpleSweetTart's Avatar
PurpleSweetTart
Level 1 : New Miner
0

Create an account or sign in to comment.

5

1
04/30/2017 11:50 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
Did you use:
/scoreboard objectives setDisplay sidebar sleeping?
And yes, it's case sensitive.
1
04/30/2017 10:50 am
Level 1 : New Miner
PurpleSweetTart
PurpleSweetTart's Avatar
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!
1
04/29/2017 10:51 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
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
/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
04/29/2017 9:39 pm
Level 1 : New Miner
PurpleSweetTart
PurpleSweetTart's Avatar
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!
1
04/29/2017 6:59 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
/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).
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome