개인 자료란 (JE)

  서버 커뮤니티

Profile La_pius 대표칭호 없음
Profile

질문하기 스크립트

국가 스크립트 오류

2022.06.28 조회 수 235 추천 수 0
이해도 초보자(스크립트 구성요소나 기본문법은 알아요) 
게임버전 (BE) 관련없음 

설치된 신호기 감지가 안되는거 같습니다  

신호기 설치

on place of beacon:

    player's world is {guild.world}

    cancel event

    if {guild.bossname::%player's uuid%} is not set:

        send "{@접} 국가에 소속되어 있지 않아 국가의 거점을 건설할 수 없습니다."

        stop

    if {guild.bossname::%player's uuid%} is not player's uuid:

        send "{@접} 국가 장만 국가의 거점을 건설할 수 있습니다."

        stop

    if {guild.world} is not player's world:

        send "{@접} 해당 월드에서는 국가의 거점을 건설할 수 없습니다."

        stop

    if size of {guild.base::%player's uuid%::*} is 2+{guild.placeplus::%player's uuid%}:

        send "{@접} 국가의 거점을 더이상 건설할 수 없습니다. &e[%2+{guild.placeplus}%개의 거점 보유 중]"

        stop

    loop {guild.center::*}:

        distance between location (event-block's x coord, 55, event-block's z coord) and location (loop-value's x coord, 55, loop-value's z coord) < 104

        loop 85 times:

            loop 85 times:

                if loop-number-1 is 1 or 85:

                    location (x coord of event-block-42+{_x}, 55, z coord of event-block-42+{_z}) is within {guild.pos1::%loop-index-1%} to {guild.pos2::%loop-index-1%}:

                    send "{@접} 근처 국가의 거점 간의 거리가 짧아 좀 더 멀리에 건설하세요."

                    stop

                else if loop-number-2 is 1 or 85:

                    location (x coord of event-block-42+{_x}, 55, z coord of event-block-42+{_z}) is within {guild.pos1::%loop-index-1%} to {guild.pos2::%loop-index-1%}:

                    send "{@접} 근처 국가의 거점 간의 거리가 짧아 좀 더 멀리에 건설하세요."

                    stop

    uncancel event

    set {_i} to 1

    while {guild.tag::%{_i}%} is set:

        add 1 to {_i}

        {_i}/10-round down ({_i}/10) is 0

        wait 1 tick

    set {guild.tag::%{_i}%} to player's uuid

    set {guild.center::%{_i}%} to event-block's location

    add {_i} to {guild.base::%player's uuid%::*}

    set {guild.pos1::%{_i}%} to location (x coord of event-block-35, 55, z coord of event-block-35)

    set {guild.pos2::%{_i}%} to location (x coord of event-block+36, 55, z coord of event-block+36)

    loop 71 times:

        loop 71 times:

            if loop-num-1 is 1 or 71:

                set block at location (x coord of event-block-36+loop-num-1, y coord of event-block, z coord of event-block-36+loop-num-2) in {guild.world} to bedrock 

            else if loop-num-2 is 1 or 71:

                set block at location (x coord of event-block-36+loop-num-1, y coord of event-block, z coord of event-block-36+loop-num-2) in {guild.world} to bedrock

    loop {guild.pepole::%player's uuid%::*}:

        send "{@접} 국가의 &3%size of {guild.base::%player's uuid%::*}%&f번째 거점이 건설되었습니다." to player from loop-value

    play sound "ENTITY_PLAYER_LEVELUP" to player with volume 2 and pitch 1

    set {_m::1} to "&f멋진 국가를 가지고 계시군요. &c&l&o전쟁의 시작"

    set {_m::2} to "&f좋은 거점 배치로 전쟁의 효율을 높여 보세요."

    set {_r} to random integer between 0.9 and 2.1

    send player title "&3&l[거점 건설]" with subtitle "%{_m::%{_r}%}%" for 5 seconds

    set {_a} to x-coordinate of event-block

    set {_b} to (y-coordinate of event-block)-1

    set {_c} to z-coordinate of event-block

    set block at location {_a}+1, {_b}, {_c} in {guild.world} to emerald block

    set block at location {_a}+1, {_b}, {_c}+1 in {guild.world} to emerald block

    set block at location {_a}+1, {_b}, {_c}-1 in {guild.world} to emerald block

    set block at location {_a}, {_b}, {_c} in {guild.world} to emerald block

    set block at location {_a}, {_b}, {_c}+1 in {guild.world} to emerald block

    set block at location {_a}, {_b}, {_c}-1 in {guild.world} to emerald block

    set block at location {_a}-1, {_b}, {_c} in {guild.world} to emerald block

    set block at location {_a}-1, {_b}, {_c}+1 in {guild.world} to emerald block

    set block at location {_a}-1, {_b}, {_c}-1 in {guild.world} to emerald block

신호기 우클릭인거 같습니다 (신호기끼리 텔레포트) 

    if event-block is beacon:

        loop {guild.center::*}:

            event-block's location is loop-value

            cancel event

            if {guild.tag::%loop-index%} is not {guild.bossname::%player's uuid%}:

                send "{@접} 자신의 국가 신호기만 사용하실 수 있습니다."

                stop

            open chest with 3 row named "{@접} &3&l국가 거점 이동" to player

            wait 1 tick

            loop 27 times:

                set slot (loop-num)-1 of current inventory to light blue stained glass pane named "&f&c&d"

            set {_bp::*} to 0, 1, 2, 3, 4, 5, 9, 11, 12, 18, 19 and 20

            loop {_bp::*}:

                set slot loop-value-2 of current inventory to blue stained glass pane named "&f&c&d"

            loop 3 times:

                set slot 7+loop-num*3 of current inventory to gray stained glass pane named "&7&l건설 예정" with lore "&f건설되지 않은 거점입니다.  "

            if {guild.placeplus::%player's uuid%} is not set:

                set slot 16 of current inventory to red stained glass pane named "&c&l잠금" with lore "&c잠금&f되어 있어 건설할 수 없는 거점입니다.  "

            loop {guild.base::%{guild.bossname::%player's uuid%}%::*}:

                add 1 to {_num}

                set slot 7+{_num}*3 of current inventory to ender_crystal named "&3&l%{_num}%&f번째 거점" with lore "||&f클릭 시 &3&l%{_num}% &f번째 거점으로 이동합니다.||&f"

            stop


Warning
댓글이 없습니다.

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