#NEED HELP WITH MY RANK SCRIPT
1 messages ยท Page 1 of 1 (latest)
use a switch
or like
anything else than a million if else statements
also why are your glyphs all in a different style
idk why but console player cant see the other players ranks they only can see it if the have the rank all other ?
thats how my code work set the rank with unicode if the the score
as for this, it sounds like a resource pack/pack cache problem
also why runcommandasync tellraw ๐ญ
world.sendMessage(e) exists
What font is that? Bolded special character font?
im using the converter from here 1 sec
0xE22F
bro im new to scripting
still learning
that mean i cant fix it?
send your rp manifest and font folder
ehm why not tellraw is that bad?
runcommandasync is bad
only use it when ther is no other way
try just updating your uuids, it should prompt a resource pack update for everyone
might or might not fix it
so what other way do i have?
ok
ah ok thx
const allRanks = {
0: '๎ฎ',
1: '๎',
2: '๎',
3: '๎',
4: '๎ฏ',
10: '๎',
20: '๎',
30: '๎',
40: '๎',
50: '๎',
60: '๎'
}
const rankScore = world.scoreboard.getObjective('Rank').getScore(data.sender.scoreboard)
const rank = allRanks[rankScore]
this removes the need of all those if statements
ok thx
const rank = allRanks[rankScore] || `๎ฎ (${rankScore})`
so that it sets a value even if it doesnt find one
why have rankScore there? doesnt look like they want to display the number
oh nvm
im just using their original code
yeah just looked at it lol
yes some people cant see the font thats strange but they can see it if they have the rank ??
is there an other way to diplay picture in chat without fonts?
its now our glyph