Hello to you the skripters ! Today I block on the scoreboard.
Indeed, I try to define a scoreboard that displays the Y position of the player and that updates
at every change of position. The problem is that the new position is displayed to other players. I did not find in the documentation the way to update only for the player.
Code:
Doesn't work :
Thank's in advance for help.
Indeed, I try to define a scoreboard that displays the Y position of the player and that updates
at every change of position. The problem is that the new position is displayed to other players. I did not find in the documentation the way to update only for the player.
Code:
code_language.skript:
command /sc:
trigger:
erase player sidebar
set name of sidebar of player to "Location"
set id based score "&fY: &6&l%{_y}%" in sidebar of player to 0 with id "y"
on any move:
set {y.%player%} to y coord of player
edit score id "y" to "&fY: &6&l%{y.%player%}%" and 3
Doesn't work :
code_language.skript:
edit score id "y" to "&fY: &6&l%{y.%player%}%" for player and 3
Thank's in advance for help.