Hi guys, i've been searching for a long time a way to loop all players at the same time and creating a bossbar. The problem is that the bossbar does not show for all the players, but for only ONE player. Here is my code:
Code:
every 1 tick:
loop all players:
create bossbar titled "&a&lLevel &7&l[&6&l%{level.%loop-player%}%&7&l] &7&l[&b%{exp.%loop-player%}%&7&l]" and id "level" for loop-player with progress {exp.%loop-player%} with colors blue
if {exp.%loop-player%} is greater than or equal to 100:
set {exp.%loop-player%} to 0
add 1 to {level.%loop-player%}
send loop-player title "&a&lLevel Up!" with subtitle "&7&m&l---------------" for 2 seconds
play sound "entity.player.levelup" with volume 1 at loop-player
stop
Last edited: