이해도 | 중급자 |
---|---|
게임버전 (JE) | 관련없음 |
게임버전 (BE) | 관련없음 |
스코어 보드 스크립트 인데요
에메랄드 개수를 표시하고 싶은데
이렇게 하는게 맞나요?(보라색 줄 부분)
every 1 seconds:
loop all players:
if {스코어보드.%loop-player%} is true:
wipe loop-players's sidebar
set name of sidebar of loop-player to "&c&n재열 약탈 서버"
set score "" in sidebar of loop-player to 7
if {닉네임::%loop-player%} is not set:
set score "&a닉네임 &f: &7%loop-player%" in sidebar of loop-player to 6
else:
set score "&a닉네임 &f: %{닉네임::%loop-player%}%" in sidebar of loop-player to 6
set score " " in sidebar of loop-player to 5
set score "&6에메랄드 &f: &e%{에메랄드::%item amount of {emerald}%}%&f개" in sidebar of loop-player to 4
set score "&b플레이타임 &f: %{플레이타임::%uuid of loop-player%::일}%일 %{플레이타임::%uuid of loop-player%::시}%시간 %{플레이타임::%uuid of loop-player%::분}%분 %{플레이타임::%uuid of loop-player%::초}%초" in sidebar of loop-player to 2
set score "&c현재시간 &f: %now%" in sidebar of loop-player to 1
set score "&d접속자 수 &f: %number of all players%명" in sidebar of loop-player to 0
every 1 seconds:
loop players:
if {플레이타임::%uuid of loop-player%::초} is not set:
set {플레이타임::%uuid of loop-player%::초} to 0
set {플레이타임::%uuid of loop-player%::분} to 0
set {플레이타임::%uuid of loop-player%::시} to 0
set {플레이타임::%uuid of loop-player%::일} to 0
else:
add 1 to {플레이타임::%uuid of loop-player%::초}
wait 1 ticks
if {플레이타임::%uuid of loop-player%::초} is 60:
set {플레이타임::%uuid of loop-player%::초} to 0
add 1 to {플레이타임::%uuid of loop-player%::분}
wait 1 ticks
if {플레이타임::%uuid of loop-player%::분} is 60:
set {플레이타임::%uuid of loop-player%::분} to 0
add 1 to {플레이타임::%uuid of loop-player%::시}
wait 1 ticks
if {플레이타임::%uuid of loop-player%::시} is 24:
set {플레이타임::%uuid of loop-player%::시} to 0
add 1 to {플레이타임::%uuid of loop-player%::일}
command /스코어보드 [<text>]:
trigger:
if arg 1 is "켜기":
set {스코어보드.%player%} to true
message "&e&l스코어보드 활성화"
if arg 1 is "끄기":
wipe player's sidebar
set {스코어보드.%player%} to false
message "&4&l스코어보드 비활성화"
댓글이 없습니다.
새로운 댓글을 등록해 주세요!