#How to display a team’s total score from a scoreboard in TAB

1 messages · Page 1 of 1 (latest)

junior hornet
#

hey

#

how can i show a team’s total score from a scoreboard objective in TAB? I have an objective called coins

#

i tried %objectivescore<objective>_<entry>% but it doesn’t show anything. what’s the correct placeholder format?

frank star
#

you know, you don't need to ask in 3 different channels

#

well, 4 if you count the thread on my Discord server

junior hornet
#

😭

#

mb cuh

frank star
#

can you send the exact placeholder you tried?

junior hornet
#

%objectivescore<objective>_<entry>%

frank star
#

the exact placeholder with the values filled

#

what did you put instead of <objective> and <entry>

junior hornet
#

oh

#

%objectivescore<coins>_<RedRabbits>%

frank star
#

%objective_score_{score}_RedRabbits%

junior hornet
#

should i try that?

frank star
#

no, I just wrote that because my dog asked me to

junior hornet
#

umm

#

okay?

frank star
#

look at her

junior hornet
#

cute dogie

frank star
#

ain't she adorable?

junior hornet
#

she is

#

never had a dog

#

always got cats

frank star
#

jk though, yeah you should try it

junior hornet
#

yeah i tried it

#

but nothing happened

#

just says zero

frank star
#

then I guess it works?

junior hornet
#

no

#

my coins score is 453

#

and it isnt showing there

frank star
#

did you run those commands? the second one being the command to add a point for the team

junior hornet
#

ran

#

the first one

#

but the second one doesnt work

#

wdym by the second command

frank star
#

even though I keep correcting you by removing the <>, you still keep adding them back...

frank star
frank star
frank star
junior hornet
frank star
#

right, I forgot the add before the team name

#

/scoreboard players add RedRabbits score 1

junior hornet
#

it shows zero

frank star
#

uh

#

no idea then

junior hornet
frank star
#

but either way you want to sum all of the team's players points together so that's not exactly going to work

junior hornet
#

yeah

#

i want the sum

frank star
#

I'll update my PlayerList expansion for you when I get the time to add a new placeholder to do that

junior hornet
#

i already got a system here working

#

but i also want it in the tab

#

this is for something else

frank star
#

how did you make it?

junior hornet
#

these are the commands blocks for it;

scoreboard players set RedRabbits coins 0

execute as @a[team=RedRabbits] run scoreboard players operation RedRabbits coins += @s coins

tellraw @a [{"text":" 1. "}, {"text":"\uE001 "}, {"text":"Red Rabbits ","color":"red"}, {"text":" "}, {"score":{"name":"RedRabbits","objective":"coins"},"color":"white"}, {"text":"\uE013"}]

#

this is for one of the teams

#

the first command block is an impulse

#

the two other ones are chain

frank star
#

uh

#

so

#

%objective_score_{coins}_RedRabbits%

junior hornet
#

yep

#

still nothing

#

i downloaded the scoreboard objectives for papi

frank star
#

what about %objective_scorep_{coins}_RedRabbits%

junior hornet
#

and reloded

frank star
#

no idea what the difference is but try it

junior hornet
#

what is scorep?

#

whats the diffrence between it and score

frank star
#

looking at the code, it seems to be the position on the scoreboard, so not interesting after all

frank star
#

oh

junior hornet
#

yeah but i tried it

frank star
#

%objective_score_{coins}_{RedRabbits}%

junior hornet
#

it says 100

#

but idk where did the 100 come from

#

im not even in redrabbits

frank star
junior hornet
#

omg

#

i think i just found out why

#

thank you so much

#

it worked

#

i cant thank you enough

#

thank you so much for being patient with me

#

istg ur a life savor