The Meaning of Life, the Universe, and Everything.
Join Date:
12/25/2017
Posts:
47
Member Details
I need help making a scoreboard which will set each player an individual score.
i.e if every player starts with a score of 0, and there are 5 players. each player will have a different score of 1-5
any help is appreciated
Rollback Post to RevisionRollBack
Minecraft Command Artist
And when it comes to art, there's only happy little mistakes.
make a command block chain (repeating > chain > chain) and set them to always active
paste these in order:
/execute as @e[type=minecraft:player,tag=!tagged] run execute store result score @s id run scoreboard players get @e[tag=c,limit=1] id
(id is a dummy objective)
/execute as @a[tag=!tagged] run scoreboard players add @e[tag=c] id 1
/tag @a[scores={id=1..},tag=!tagged] add tagged
There was a thread which had a working system to add ids to players (each player would get a unique id) but i couldn't find it so I re-created this smaller design. I'm not sure if it will work but give it a go.
This finds who has the highest Score value. This player has a TempScore = 0
execute as @e[tag=!tagged] run execute store result score @s Score run scoreboard players get @e[scores={TempScore=0},limit=1] Score
execute as @e[tag=!tagged] run scoreboard players add @s Score 1
execute as @e[tag=!tagged] run tag @s add tagged
Repeating > Chain > Chain
Then this finds the untagged player, makes their Score equal to the highest Score, then adds 1.
I need help making a scoreboard which will set each player an individual score.
i.e if every player starts with a score of 0, and there are 5 players. each player will have a different score of 1-5
any help is appreciated
Minecraft Command Artist
And when it comes to art, there's only happy little mistakes.
summon armor stand which will hold the current number:
make a command block chain (repeating > chain > chain) and set them to always active
paste these in order:
(id is a dummy objective)
There was a thread which had a working system to add ids to players (each player would get a unique id) but i couldn't find it so I re-created this smaller design. I'm not sure if it will work but give it a go.
Command block engineer // Developer // #TeamTrees
or you can do
"NAME" is a name for an unexisting player. maybe like "player_count". it will end up being the same score as the player with the largest score.
"SCORE" is a dummy scoreboard score. maybe name it "ID" or sth
These responses helped me with what i was stuck with. i modified the commands a little to suit my needs now i have this.
This makes a minimum score of 1
This finds who has the highest Score value. This player has a TempScore = 0
Then this finds the untagged player, makes their Score equal to the highest Score, then adds 1.
Thanks
Minecraft Command Artist
And when it comes to art, there's only happy little mistakes.