OuO_Chaton e42a6f60e18d43eeae9cab2397ed5f2f
이해도 | 중급자 |
---|---|
게임버전 (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 {_술래::*}
qsef1256
2023.02.16스크립트에서 비동기 하기 쉽지 않아요. 동시에 실행하는 게 아니라 동시에 처리되도록 만들어야 해요.
OuO_Chaton
2023.02.16아하 그렇군요 ㅠㅠㅠ 답변 감사합니다