이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.12.2 |
게임버전 (BE) | 관련없음 |
얘를 들어서 이제 게임 플레이어 1명당 1개의 슬롯을 차지하여 눌러서 그사람한테 도전 할 수 있게 하고 싶은데 1페이지를 넘어가면 더 이상 도전이 불가능해서..사람 수가 늘어나면 1페이지 2페이지 이렇게 늘어나게 할 수 있을까요? 혹시 몰라서 구문도 남겨봅니다!
on join:
if {가위바위보추가::player} is not set:
add player to {가위바위보.players::*}
set {가위바위보추가::player} to true
set {승리횟수.%player%} to 0
set {패배횟수.%player%} to 0
set {플레이어닉.%player%} to player
add 1 to {플레이어수}
command /가위바위보 [<text>]:
trigger:
if arg 1 is "플레이어제거":
if player is op:
delete {가위바위보.players::*}
delete {가위바위보추가.players::*}
message "&f모든 플레이어를 명단에서 제거하였습니다." to player
if arg 1 is "수락":
if {초대받음.%player%} is true:
if {취소.%{초대자}%} is false:
set {초대수락.%player%} to true
open chest with 5 rows named "&a가위바위보 &6상대 &f: &a%{초대자}%" to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to skull of {초대자} named "&6&l%{초대자}%의 정보" with lore "&f전적 : &b%{초대자승리}%&f승 &c%{초대자패배}%&f패"
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold block named "&6&l대결 준비"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 23 of current inventory of player to diamond block named "&e&l상대 : %{초대자}%"
set slot 24 of current inventory of player to diamond block named "&e&l상대 : %{초대자}%"
set slot 25 of current inventory of player to diamond block named "&e&l상대 : %{초대자}%"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 42 of current inventory of player to gold ingot named "&e&l%{초대자}%" with lore "&f걸은 돈 : &6%{초대자걸은돈}%&f원"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
else:
message "&c방이 사라져서 수락하실 수 없습니다!" to player
else:
message "&c당신은 초대받지 않아서 수락하실 수 없습니다!" to player
if arg 1 is "변수초기화":
if player is op:
set {플레이어수} to 0
message "&f변수가 초기화되었습니다!" to player
on steping on emerald block:
set {취소.%player%} to false
set {가위바위보돈.%player%} to 0
set {skip.%player%} to false
set {가위.%player%} to false
set {바위.%player%} to false
set {보자기.%player%} to false
open chest with 5 rows named "&a가위바위보 &8상대 대기중.." to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&7&l상대 찾는중.."
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold block named "&c&l대결 신청"
set slot 20 of current inventory of player to stone named "&7&lAI하고 대결하기"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기" with lore "&f현재 배팅된 금액 : &6%{가위바위보돈.%player%}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
on inventory click:
if event-inventory's display name contains "&a가위바위보 &8상대 대기중..":
cancel event
if index of event-slot is 19:
open chest with 5 rows named "&a가위바위보 &c대결 상대 선택" to player
play sound "block.note.pling" to player
set {_rm} to 0
loop {플레이어수} times:
set slot {_rm} of current inventory of player to skull of {가위바위보.players::%({_rm} + 1)%} named "&e%{가위바위보.players::%({_rm} + 1)%}%" with lore "&6&l⚫ &f클릭시 &e%{가위바위보.players::%({_rm} + 1)%}%&f님과" and "&6⚫ &c대결&f을 신청합니다."
add 1 to {_rm}
if index of event-slot is 20:
set {가위바위보시간.%player%} to 20
open chest with 5 rows named "&a가위바위보 &bAI하고 대결중.." to player
play sound "block.note.pling" to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&d&l가위바위보 AI"
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to shears named "&b&l가위"
set slot 20 of current inventory of player to stone named "&8&l바위"
set slot 21 of current inventory of player to paper named "&e&l보자기"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 23 of current inventory of player to obsidian named "&c&l대기중.."
set slot 24 of current inventory of player to obsidian named "&c&l대기중.."
set slot 25 of current inventory of player to obsidian named "&c&l대기중.."
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to ender pearl named "&a&l스킵하기"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 42 of current inventory of player to clock named "&c남은 시간 &f: &e%{가위바위보시간.%player%}%&f초"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
loop 20 times:
if {skip.%player%} is false:
wait 1 seconds
subtract 1 from {가위바위보시간.%player%}
set slot 42 of current inventory of player to clock named "&c남은 시간 &f: &e%{가위바위보시간.%player%}%&f초"
else:
open chest with 5 rows named "&a가위바위보 &bAI하고 &c대결&f결과!" to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&d&l가위바위보 AI"
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
if {가위.%player%} is true:
set slot 20 of current inventory of player to shears named "&b&l가위"
else if {바위.%player%} is true:
set slot 20 of current inventory of player to stone named "&8&l바위"
else if {보자기.%player%} is true:
set slot 20 of current inventory of player to paper named "&e&l보자기"
else:
set slot 20 of current inventory of player to barrier named "&c&l기권"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set {AI의선택} to random integer between 1 and 3
if {AI의선택} is 1:
set slot 24 of current inventory of player to shears named "&b&l가위"
else if {AI의선택} is 2:
set slot 24 of current inventory of player to stone named "&8&l바위"
else if {AI의선택} is 3:
set slot 24 of current inventory of player to paper named "&e&l보자기"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l배팅되어 있는돈" with lore "&6%{가위바위보돈}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
if {가위.%player%} is true:
if {AI의선택} is 1:
set slot 42 of current inventory of player to gray wool named "&7&l비겼습니다!"
else if {AI의선택} is 2:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
subtract {가위바위보돈.%player%} from {돈.%uuid of player%}
else if {AI의선택} is 3:
set slot 42 of current inventory of player to pink wool named "&a&l이겼습니다!"
add {가위바위보돈.%player%} / 2 to {돈.%uuid of player%}
else if {바위.%player%} is true:
if {AI의선택} is 1:
set slot 42 of current inventory of player to pink wool named "&a&l이겼습니다!"
add {가위바위보돈.%player%} / 2 to {돈.%uuid of player%}
else if {AI의선택} is 2:
set slot 42 of current inventory of player to gray wool named "&7&l비겼습니다!"
else if {AI의선택} is 3:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
subtract {가위바위보돈.%player%} from {돈.%uuid of player%}
else if {보자기.%player%} is true:
if {AI의선택} is 1:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
subtract {가위바위보돈.%player%} from {돈.%uuid of player%}
else if {AI의선택} is 2:
set slot 42 of current inventory of player to pink wool named "&a&l이겼습니다!"
add {가위바위보돈.%player%} / 2 to {돈.%uuid of player%}
else if {AI의선택} is 3:
set slot 42 of current inventory of player to gray wool named "&7&l비겼습니다!"
else:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
stop
open chest with 5 rows named "&a가위바위보 &bAI하고 &c대결&f결과!" to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&d&l가위바위보 AI"
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
if {가위.%player%} is true:
set slot 20 of current inventory of player to shears named "&b&l가위"
else if {바위.%player%} is true:
set slot 20 of current inventory of player to stone named "&8&l바위"
else if {보자기.%player%} is true:
set slot 20 of current inventory of player to paper named "&e&l보자기"
else:
set slot 20 of current inventory of player to barrier named "&c&l기권"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set {AI의선택} to random integer between 1 and 3
if {AI의선택} is 1:
set slot 24 of current inventory of player to shears named "&b&l가위"
else if {AI의선택} is 2:
set slot 24 of current inventory of player to stone named "&8&l바위"
else if {AI의선택} is 3:
set slot 24 of current inventory of player to paper named "&e&l보자기"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l배팅되어 있는돈" with lore "&6%{가위바위보돈}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
if {가위.%player%} is true:
if {AI의선택} is 1:
set slot 42 of current inventory of player to gray wool named "&7&l비겼습니다!"
else if {AI의선택} is 2:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
subtract {가위바위보돈.%player%} from {돈.%uuid of player%}
else if {AI의선택} is 3:
set slot 42 of current inventory of player to pink wool named "&a&l이겼습니다!"
add {가위바위보돈.%player%} / 2 to {돈.%uuid of player%}
else if {바위.%player%} is true:
if {AI의선택} is 1:
set slot 42 of current inventory of player to pink wool named "&a&l이겼습니다!"
add {가위바위보돈.%player%} / 2 to {돈.%uuid of player%}
else if {AI의선택} is 2:
set slot 42 of current inventory of player to gray wool named "&7&l비겼습니다!"
else if {AI의선택} is 3:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
subtract {가위바위보돈.%player%} from {돈.%uuid of player%}
else if {보자기.%player%} is true:
if {AI의선택} is 1:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
subtract {가위바위보돈.%player%} from {돈.%uuid of player%}
else if {AI의선택} is 2:
set slot 42 of current inventory of player to pink wool named "&a&l이겼습니다!"
add {가위바위보돈.%player%} / 2 to {돈.%uuid of player%}
else if {AI의선택} is 3:
set slot 42 of current inventory of player to gray wool named "&7&l비겼습니다!"
else:
set slot 42 of current inventory of player to red wool named "&c&l졌습니다!"
subtract {가위바위보돈.%player%} from {돈.%uuid of player%}
if index of event-slot is 21:
close player's inventory
set {취소.%player%} to true
if index of event-slot is 38:
play sound "block.note.pling" to player
open chest with 3 rows named "&a가위바위보 &6돈 배팅" to player
set slot 10 of current inventory of player to stone named "&7&l100원 배팅하기"
set slot 12 of current inventory of player to iron ingot named "&f&l500원 배팅하기"
set slot 14 of current inventory of player to gold ingot named "&6&l1000원 배팅하기"
set slot 16 of current inventory of player to diamond named "&b&l3000원 배팅하기 &f&l(최대금액)"
set slot 22 of current inventory of player to ender eye named "&c&l배팅 취소 &f&l(0원 배팅)"
on inventory click:
if event-inventory's display name contains "&a가위바위보 &bAI하고 대결중..":
cancel event
if index of event-slot is 19:
play sound "block.note.pling" to player
set {가위.%player%} to true
set {바위.%player%} to false
set {보자기.%player%} to false
set slot 19 of current inventory of player to shears of fortune 1 named "&b&l가위" with lore "&b선택&f하셨습니다."
set slot 20 of current inventory of player to stone named "&8&l바위"
set slot 21 of current inventory of player to paper named "&e&l보자기"
if index of event-slot is 20:
play sound "block.note.pling" to player
set {가위.%player%} to false
set {바위.%player%} to true
set {보자기.%player%} to false
set slot 19 of current inventory of player to shears named "&b&l가위"
set slot 20 of current inventory of player to stone of fortune 1 named "&8&l바위" with lore "&b선택&f하셨습니다."
set slot 21 of current inventory of player to paper named "&e&l보자기"
if index of event-slot is 21:
play sound "block.note.pling" to player
set {가위.%player%} to false
set {바위.%player%} to false
set {보자기.%player%} to true
set slot 19 of current inventory of player to shears named "&b&l가위"
set slot 20 of current inventory of player to stone named "&8&l바위"
set slot 21 of current inventory of player to paper of fortune 1 named "&e&l보자기" with lore "&b선택&f하셨습니다."
if index of event-slot is 38:
play sound "block.note.pling" to player
set {skip.%player%} to true
on inventory click:
if event-inventory's display name contains "&a가위바위보 &bAI하고":
cancel event
on inventory click:
if event-inventory's display name contains "&a가위바위보 &c대결 상대 선택":
cancel event
set {rn} to index of event-slot + 1
if {플레이어닉.%player%} == {가위바위보.players::%{rn}%}:
message "&c자신은 초대하실 수 없습니다!" to player
close player's inventory
else:
message "&6%player%&f님이 당신을 &b가위바위보&f에 초대하셨습니다! <ttp:&f클릭하시면 &b가위바위보 &e게임&f에 참여하실 수 있습니다!><cmd:/가위바위보 수락>&e[ 참여하기 ]<reset> &f를 누르시면 &b가위바위보&f에 참여하실 수 있습니다!" to {가위바위보.players::%{rn}%}
set {상대닉네임.%player%} to {가위바위보.players::%{rn}%}
set {초대수락.%{가위바위보.players::%{rn}%}%} to false
set {초대받음.%{가위바위보.players::%{rn}%}%} to true
set {초대자.%player%} to player
while {초대수락.%{가위바위보.players::%{rn}%}%} is false:
if {취소.%player%} is true:
stop
else:
open chest with 5 rows named "&a가위바위보 &6%{가위바위보.players::%{rn}%}%&8님 대기중.." to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&6%{가위바위보.players::%{rn}%}%&7님 대기중.."
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to red stained glass named "&c&l대기중입니다.."
set slot 20 of current inventory of player to red stained glass named "&c&l대기중입니다.."
set slot 21 of current inventory of player to red stained glass named "&c&l대기중입니다.."
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
wait 10 ticks
open chest with 5 rows named "&a가위바위보 &6상대 &f: &a%%{가위바위보.players::%{rn}%}%%" to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to skull of {가위바위보.players::%{rn}%} named "&6&l%{가위바위보.players::%{rn}%}%님의 정보" with lore "&f전적 : &b%{승리횟수.%{가위바위보.players::%{rn}%}%}%&f승 &c%{패배횟수.%{가위바위보.players::%{rn}%}%}%&f패"
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold sword named "&6&l대결 준비"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 23 of current inventory of player to diamond block named "&e&l상대 : %{가위바위보.players::%{rn}%}%"
set slot 24 of current inventory of player to diamond block named "&e&l상대 : %{가위바위보.players::%{rn}%}%"
set slot 25 of current inventory of player to diamond block named "&e&l상대 : %{가위바위보.players::%{rn}%}%"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기" with lore "&f현재 배팅된 금액 : &6%{가위바위보돈.%player%}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 42 of current inventory of player to gold ingot named "&e&l%{가위바위보.players::%{rn}%}%" with lore "&f걸은 돈 : &6%{걸은돈.%{가위바위보.players::%{rn}%}%}%&f원"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
on inventory click:
if event-inventory's display name contains "&a가위바위보 &6돈 배팅":
cancel event
if index of event-slot is 10:
play sound "block.note.pling" to player
if {돈.%uuid of player%} >= 100:
set {가위바위보돈.%player%} to 100
open chest with 5 rows named "&a가위바위보 &8상대 대기중.." to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&7&l상대 찾는중.."
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold block named "&c&l대결 신청"
set slot 20 of current inventory of player to stone named "&7&lAI하고 대결하기"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기" with lore "&f현재 배팅된 금액 : &6%{가위바위보돈.%player%}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
else:
close player's inventory
message "&f앗, 돈이 부족한거 같은데요?" to player
if index of event-slot is 12:
play sound "block.note.pling" to player
if {돈.%uuid of player%} >= 500:
set {가위바위보돈.%player%} to 500
open chest with 5 rows named "&a가위바위보 &8상대 대기중.." to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&7&l상대 찾는중.."
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold block named "&c&l대결 신청"
set slot 20 of current inventory of player to stone named "&7&lAI하고 대결하기"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기" with lore "&f현재 배팅된 금액 : &6%{가위바위보돈.%player%}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
else:
close player's inventory
message "&f앗, 돈이 부족한거 같은데요?" to player
if index of event-slot is 14:
play sound "block.note.pling" to player
if {돈.%uuid of player%} >= 1000:
set {가위바위보돈.%player%} to 1000
open chest with 5 rows named "&a가위바위보 &8상대 대기중.." to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&7&l상대 찾는중.."
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold block named "&c&l대결 신청"
set slot 20 of current inventory of player to stone named "&7&lAI하고 대결하기"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기" with lore "&f현재 배팅된 금액 : &6%{가위바위보돈.%player%}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
else:
close player's inventory
message "&f앗, 돈이 부족한거 같은데요?" to player
if index of event-slot is 16:
play sound "block.note.pling" to player
if {돈.%uuid of player%} >= 3000:
set {가위바위보돈.%player%} to 3000
open chest with 5 rows named "&a가위바위보 &8상대 대기중.." to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&7&l상대 찾는중.."
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold block named "&c&l대결 신청"
set slot 20 of current inventory of player to stone named "&7&lAI하고 대결하기"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기" with lore "&f현재 배팅된 금액 : &6%{가위바위보돈.%player%}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
else:
close player's inventory
message "&f앗, 돈이 부족한거 같은데요?" to player
if index of event-slot is 22:
play sound "block.note.pling" to player
set {가위바위보돈.%player%} to 0
open chest with 5 rows named "&a가위바위보 &8상대 대기중.." to player
set slot 0 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of player to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패"
set slot 4 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of player to player skull named "&7&l상대 찾는중.."
set slot 8 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to gold block named "&c&l대결 신청"
set slot 20 of current inventory of player to stone named "&7&lAI하고 대결하기"
set slot 21 of current inventory of player to redstone block named "&4&l대결 취소"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to gold ingot named "&e&l돈 배팅하기" with lore "&f현재 배팅된 금액 : &6%{가위바위보돈.%player%}%&f원"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
on inventory click:
if event-inventory's display name contains "&8님 대기중..":
cancel event
if index of event-slot is 38:
close player's inventory
set {취소.%player%} to true
on inventory click:
if event-inventory's display name contains "&a가위바위보 &6상대":
cancel event
if index of event-slot is 19:
set slot 19 of current inventory of player to golden sword of fortune 1 named "&6&l준비 완료"
set {준비완료.%player%} to true
if {준비완료.%{초대자.%player%}%} is true:
if {준비완료.%{가위바위보.players::%{rn}%}%} is true:
set {가위바위보시간.%{초대자.%player%}%} to 25
set {가위바위보시간.%{가위바위보.players::%{rn}%}%} to 25
open chest with 5 rows named "&a가위바위보 &b대결중.." to {초대자.%player%}
open chest with 5 rows named "&a가위바위보 &b대결중.." to {가위바위보.players::%{rn}%}
set slot 0 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of {초대자.%player%} to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패" and "&f건 돈 : &e{가위바위보돈.%player%}"
set slot 4 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of {초대자.%player%} to skull of {가위바위보.players::%{rn}%} named "&6&l{가위바위보.players::%{rn}%}&f님과 대결중.."
set slot 8 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of {초대자.%player%} to shears named "&b&l가위"
set slot 20 of current inventory of {초대자.%player%} to stone named "&8&l바위"
set slot 21 of current inventory of {초대자.%player%} to paper named "&e&l보자기"
set slot 22 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 23 of current inventory of {초대자.%player%} to obsidian named "&c&l대기중.."
set slot 24 of current inventory of {초대자.%player%} to obsidian named "&c&l대기중.."
set slot 25 of current inventory of {초대자.%player%} to obsidian named "&c&l대기중.."
set slot 26 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of {초대자.%player%} to ender pearl named "&a&l스킵하기 투표"
set slot 40 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 42 of current inventory of {초대자.%player%} to clock named "&c남은 시간 &f: &e%{가위바위보시간.%player%}%&f초"
set slot 44 of current inventory of {초대자.%player%} to iron bars named "&f&l가위바위보 대결"
set slot 0 of current inventory of {가위바위보.players::%{rn}%} to iron bars named "&f&l가위바위보 대결"
set slot 2 of current inventory of {가위바위보.players::%{rn}%} to skull of player named "&6&l내 정보" with lore "&f전적 : &b%{승리횟수.%player%}%&f승 &c%{패배횟수.%player%}%&f패" and "&f건 돈 : &e{가위바위보돈.%player%}"
set slot 4 of current inventory of {가위바위보.players::%{rn}%} to iron bars named "&f&l가위바위보 대결"
set slot 6 of current inventory of {가위바위보.players::%{rn}%} to skull of {초대자.%player%} named "&6&l{초대자.%player%}&f님과 대결중.."
set slot 8 of current inventory of {가위바위보.players::%{rn}%} to iron bars named "&f&l가위바위보 대결"
set slot 9 of current inventory of {가위바위보.players::%{rn}%} to iron bars named "&f&l가위바위보 대결"
set slot 13 of current inventory of {가위바위보.players::%{rn}%} to iron bars named "&f&l가위바위보 대결"
set slot 17 of current inventory of {가위바위보.players::%{rn}%} to iron bars named "&f&l가위바위보 대결"
set slot 18 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 19 of current inventory of player to shears named "&b&l가위"
set slot 20 of current inventory of player to stone named "&8&l바위"
set slot 21 of current inventory of player to paper named "&e&l보자기"
set slot 22 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 23 of current inventory of player to obsidian named "&c&l대기중.."
set slot 24 of current inventory of player to obsidian named "&c&l대기중.."
set slot 25 of current inventory of player to obsidian named "&c&l대기중.."
set slot 26 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 27 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 31 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 35 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 36 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 38 of current inventory of player to ender pearl named "&a&l스킵하기 투표"
set slot 40 of current inventory of player to iron bars named "&f&l가위바위보 대결"
set slot 42 of current inventory of player to clock named "&c남은 시간 &f: &e%{가위바위보시간.%player%}%&f초"
set slot 44 of current inventory of player to iron bars named "&f&l가위바위보 대결"
if index of event-slot is 21:
close {초대자.%player%}'s inventory
close {가위바위보.players::%{rn}%}'s inventory
set {취소.%{초대자.%player%}%} to true
set {취소.%{가위바위보.players::%{rn}%}%} to true
message "&c대결을 취소하였습니다!" to {초대자.%player%}
message "&c대결을 취소하였습니다!" to {가위바위보.players::%{rn}%}
if index of event-slot is 38:
open chest with 3 rows named "&a가위바위보 &6돈 배팅" to player
set slot 10 of current inventory of player to stone named "&7&l100원 배팅하기"
set slot 12 of current inventory of player to iron ingot named "&f&l500원 배팅하기"
set slot 14 of current inventory of player to gold ingot named "&6&l1000원 배팅하기"
set slot 16 of current inventory of player to diamond named "&b&l3000원 배팅하기 &f&l(최대금액)"
set slot 22 of current inventory of player to ender eye named "&c&l배팅 취소 &f&l(0원 배팅)"
qsef1256
2022.12.19페이지 GUI는 주로 재귀 함수로 구현합니다.
스크립트뉴비
2022.12.29재귀 함수가 뭐죠..? 잘 모르겠어요..
qsef1256
2022.12.30https://namu.wiki/w/재귀함수
qsef1256
2022.12.30알고리즘의 세계에 오신 것을 환영합니다. :D
스크립트뉴비
2023.01.04감사합니다!