개인 자료란 (JE)

  서버 커뮤니티

Profile OuO_Chaton 대표칭호 없음

OuO_Chaton e42a6f60e18d43eeae9cab2397ed5f2f

Profile

질문하기 스크립트

두가지 구문을 한번에 동시에 실행

2023.02.16 조회 수 62 추천 수 0
이해도 중급자 
게임버전 (JE) 1.16.5 
게임버전 (BE) 관련없음 
스크립트 버전 2.6.4 

블럭숨바꼭질 미니게임을 스크립트로 제작중인데, 

게임이 시작되면 술래와 도망자가 각각 다른 구문을 실행시켜야 하는데 게임 시작할 때 두가지 구문을 동시에? 실행하는 방법을 알려주세요 !

구문은

loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    add loop-player to {_술래::*}

            teleport {_술래::*} to {hb.seek.warp}

            loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    set slot 39 of loop-player's inventory to black concrete

                    apply blindness 3 without particles to the loop-player for 30 seconds

            message "{@b} 30초 후 게임이 시작됩니다!" to {_술래::*}

            wait 10 second

            message "{@b} 20초 후 게임이 시작됩니다!" to {_술래::*}

            wait 10 second

            message "{@b} 10초 후 게임이 시작됩니다!" to {_술래::*}

            wait 5 second

            message "{@b} &c5&f초 후 게임이 시작됩니다!" to {_술래::*}

            wait 1 second

            message "{@b} &c4&f초 후 게임이 시작됩니다!" to {_술래::*}

            wait 1 second

            send title "&e&l3" to {_술래::*}

            play sound "minecraft:block.note_block.bell" with volume 2 and pitch 1.2 at {_술래::*}

            wait 1 second

            send title "&6&l2" to {_술래::*}

            play sound "minecraft:block.note_block.bell" with volume 2 and pitch 1.2 at {_술래::*}

            wait 1 second

            send title "&c&l1" to {_술래::*}

            play sound "minecraft:block.note_block.bell" with volume 2 and pitch 1.2 at {_술래::*}

            wait 1 second

            send title "&a&l시작" to {_술래::*}

            wait 2 tick

            loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    set slot 0 of loop-player's inventory to diamond sword named "{@b} &b다이아 검"

                    set slot 8 of loop-player's inventory to 3 spectral arrow named "{@b} &a힌트" with lore "&e우클릭 시 &e도망자들이 &6발광 &e상태가 됩니다!"

                    set slot 7 of loop-player's inventory to 1 honey bottle named "{@b} &c각성제" with lore "&f우클릭 시 &7신속&f과 &a점프강화&f가 지급됩니다!"

                    set slot 39 of loop-player's inventory to air

                    set slot 38 of loop-player's inventory to diamond chestplate named "{@b} &b다이아 갑옷"

            message "{@b} 아이템이 지급되었습니다!" to {_술래::*}

            loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    remove blindness from loop-player

            message "{@b} 모든 &e도망자&f를 잡고 &a승리&f하세요!" to {_술래::*}

            teleport {_술래::*} to {hideblock}

            clear {_술래::*}


loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    add loop-player to {_술래::*}

            teleport {_술래::*} to {hb.seek.warp}

            loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    set slot 39 of loop-player's inventory to black concrete

                    apply blindness 3 without particles to the loop-player for 30 seconds

            message "{@b} 30초 후 게임이 시작됩니다!" to {_술래::*}

            wait 10 second

            message "{@b} 20초 후 게임이 시작됩니다!" to {_술래::*}

            wait 10 second

            message "{@b} 10초 후 게임이 시작됩니다!" to {_술래::*}

            wait 5 second

            message "{@b} &c5&f초 후 게임이 시작됩니다!" to {_술래::*}

            wait 1 second

            message "{@b} &c4&f초 후 게임이 시작됩니다!" to {_술래::*}

            wait 1 second

            send title "&e&l3" to {_술래::*}

            play sound "minecraft:block.note_block.bell" with volume 2 and pitch 1.2 at {_술래::*}

            wait 1 second

            send title "&6&l2" to {_술래::*}

            play sound "minecraft:block.note_block.bell" with volume 2 and pitch 1.2 at {_술래::*}

            wait 1 second

            send title "&c&l1" to {_술래::*}

            play sound "minecraft:block.note_block.bell" with volume 2 and pitch 1.2 at {_술래::*}

            wait 1 second

            send title "&a&l시작" to {_술래::*}

            wait 2 tick

            loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    set slot 0 of loop-player's inventory to diamond sword named "{@b} &b다이아 검"

                    set slot 8 of loop-player's inventory to 3 spectral arrow named "{@b} &a힌트" with lore "&e우클릭 시 &e도망자들이 &6발광 &e상태가 됩니다!"

                    set slot 7 of loop-player's inventory to 1 honey bottle named "{@b} &c각성제" with lore "&f우클릭 시 &7신속&f과 &a점프강화&f가 지급됩니다!"

                    set slot 39 of loop-player's inventory to air

                    set slot 38 of loop-player's inventory to diamond chestplate named "{@b} &b다이아 갑옷"

            message "{@b} 아이템이 지급되었습니다!" to {_술래::*}

            loop all players:

                if {블숨.%loop-player%.hs} is "seek":

                    remove blindness from loop-player

            message "{@b} 모든 &e도망자&f를 잡고 &a승리&f하세요!" to {_술래::*}

            teleport {_술래::*} to {hideblock}

            clear {_술래::*}




2개의 댓글

qsef1256
2023.02.16

스크립트에서 비동기 하기 쉽지 않아요. 동시에 실행하는 게 아니라 동시에 처리되도록 만들어야 해요.

OuO_Chaton
2023.02.16
@qsef1256

아하 그렇군요 ㅠㅠㅠ 답변 감사합니다

뉴스 및 창작물
/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

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1