개인 자료란 (JE)

  서버 커뮤니티

Profile muim0104 대표칭호 없음
Profile

질문하기 스크립트

마크 스크립트 아이템 개수

2024.01.19 조회 수 27 추천 수 0
이해도 중급자 
게임버전 (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스코어보드 비활성화"




Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1

/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0