#can any fix this ?

1 messages · Page 1 of 1 (latest)

strong mountain
#
  1. put your code in code blocks so we can read your code/indentation
  • ```code here```
  1. "can any fix this ?"
  • we are here to walk you through errors/issues, not solve them for you.
  1. If you want help, you need to tell us what you need help with.
  • tell us what you're trying to do, and what problems you encounter
  1. Do not loop all players every second for a scoreboard. that is very inefficient.
  • instead, you can use on join and while player is online
  • I update my scoreboard through that every minute, as its not the end of the world if a player's blocks broken count isnt immediately updated.
  • I also update the scoreboard on death, etc.
  1. deaths and kills are already being tracked through Minecraft statistics, and using skbee you can access them
tight crescent
#
    Main Color: &1&l
    Secondary Color: &9

    Title Color: &4&l
    IP Color: &b

every second:
    loop all players:
        set title of loop-player's scoreboard to "{@Title Color}GTBox"
        set line 10 of loop-player's scoreboard to "&l&m-----------------"
        if {mined::%loop-player's uuid%} is set:
            set line 9 of loop-player's scoreboard to "{@Main Color}Blocks: {@Secondary Color}%{mined::%loop-player's uuid%}%"
        else:
            set line 9 of loop-player's scoreboard to "{@Main Color}Blocks: {@Secondary Color}0"
        set line 8 of loop-player's scoreboard to ""
        if {deaths::%loop-player's uuid%} is set:
            set line 7 of loop-player's scoreboard to "{@Main Color}Deaths: {@Secondary Color}%{deaths::%loop-player's uuid%}%"
        else:
            set line 7 of loop-player's scoreboard to "{@Main Color}Deaths: {@Secondary Color}0"
        if {kills::%loop-player's uuid%} is set:
            set line 6 of loop-player's scoreboard to "{@Main Color}Kills: {@Secondary Color}%{kills::%loop-player's uuid%}%"
        else:
            set line 6 of loop-player's scoreboard to "{@Main Color}Kills: {@Secondary Color}0"
        set line 5 of loop-player's scoreboard to ""
        set line 4 of loop-player's scoreboard to "{@Main Color}Players: {@Secondary Color}%online player count%/10"
        set line 3 of loop-player's scoreboard to ""
        set line 2 of loop-player's scoreboard to "{@IP Color}GTWBox.minehut.gg"
        set line 1 of loop-player's scoreboard to "&l&m-----------------"

on death:
    add 1 to {deaths::%victim's uuid%}
    if attacker is a player:
        add 1 to {kills::%attacker's uuid%}

on mine:
    add 1 to {mined::%player's uuid%}```
strong mountain
#

again, you need to tell us what you want help with

tight crescent
#

its meant to be a scoreboard thing but nothing shows up

strong mountain
#

any errors?

#

might you have your scoreboard toggled off?

tight crescent
#

idk how to see any errors

#

the scoreboard is on

strong mountain
#

when you reload it, it will say in that chat whether there are errors or if its "successfully reloaded"

tight crescent
#

oh god

strong mountain
#

seems like a problem with the loops. just remove that

tight crescent
#

wouldnt that also break everything

strong mountain
#

the line where you loop all players

#

do it on join instead

tight crescent
strong mountain
#

no

#
  while player is online:
    #update scoreboard
    wait some timespan```
tight crescent
#

can you put it in context of where im ment to put that line

#

idk what im doing pls help

strong mountain
#

replace the #update scoreboard with actually updating the scoreboard

#

and wait some timespan with wait 10 seconds for now

tight crescent
#

idk whats worng