개인 자료란 (JE)

  서버 커뮤니티

Profile 하얀눈 대표칭호 없음

Queen_SnowEyes 72d8f06e01aa4bb7b8593d879997ce8e

Profile

질문하기 스크립트

포탈스크립트 에러

2024.01.26 조회 수 26 추천 수 0
이해도 입문자 
게임버전 (JE) 1.12.2 
게임버전 (BE) 1.12.x 
스크립트 버전 2.5.3 
스크립트 애드온 잘모르겠어요 

베포받은 포탈스크립트 중에 월드에딧처럼 끈으로 포스 설정해서 연결시키는게 있는데 그중 구문이 On right click on {@warpblock}

On left click on {@warpblock} : On walk on {@warpblock} 이있는데 이 3가지가 들어간 구문만 에러가나네요..

스크립트 버전이 이걸 해석을 못하는 것 같은데,, 구문을 고치거나 애드온을 넣거나 해서 해결방법좀 알려주세요..!

Can't understand condition/effect : On right click on {@warpblock}




# 포탈 시스템

# 제작자 : 파란(Realniceness)


# [사용법]

# 끈(Lead)을 발광석에 좌클/우클하여 pos1, pos2 설정가능

# /포탈 생성 [포탈이름] 으로 포탈생성

# options에서 워프딜레이와 워프블럭 변경가능


options:

    cooldown : 3 second

    warpblock : emerald_block

    

on join:

    set {portal-cool::%player%} to now



#발광석 밟았을때

command /포탈 <text> [<text>]:

    usage: /포탈 [생성,제거,목록] [포탈이름]

    permission: op

    trigger:

        if arg 1 is "생성":

            if {포탈설정a.%player%} is not set:

                send "&cPosition 1 is not set"

                stop

            if {포탈설정b.%player%} is not set:

                send "&cPosition 2 is not set"

                stop

            if arg 2 is not set:

                send "&cPortal name is not set"

                stop

            if {portallist::%arg 2%} is set:

                send "&cPortal of that name is already exist"

                stop

            send "&3%arg 2% Portal is linked!"

            set {Portallist::%arg 2%} to {포탈설정a.%player%}

            set {portal::%{포탈설정a.%player%}%} to {포탈설정b.%player%}

            set {portal::%{포탈설정b.%player%}%} to {포탈설정a.%player%}

            delete {포탈설정a.%player%}

            delete {포탈설정b.%player%}

            

        else if arg 1 is "제거":

            if arg 2 is not set:

                send "&cPortal name is not set"

                stop

            if {portallist::%arg 2%} is not set:

                send "&cPortal of that name isn't exist"

                stop

            clear {portal::%{portal::%{Portallist::%arg 2%}%}%}

            clear {portal::%{Portallist::%arg 2%}%}

            clear {Portallist::%arg 2%}

            send "&3%arg 2% Portal is removed"

            

        else if arg 1 is "목록":

            send "&f&l[ &3&lPortal List&f&l ]"

            send ""

            loop {Portallist::*}:

                send "%loop-index% : %loop-value%"

            send ""


on left click:

    if event block is {@warpblock}:

        if player's tool is lead:

            cancel event

            set {_x} to "%round down block above's x-coord%" parsed as integer

            set {_y} to "%round down block above's y-coord%" parsed as integer

            set {_z} to "%round down block above's z-coord%" parsed as integer

            set {_w} to "%block's world%" parsed as world

            set {포탈설정a.%player%} to location({_x},{_y},{_z},{_w})

            send "&3Position 1 set: %{포탈설정a.%player%}%"

        

on right click on {@warpblock}:

    if player's tool is lead:

        cancel event

        set {_x} to "%round down block above's x-coord%" parsed as integer

        set {_y} to "%round down block above's y-coord%" parsed as integer

        set {_z} to "%round down block above's z-coord%" parsed as integer

        set {_w} to "%block's world%" parsed as world

        set {포탈설정b.%player%} to location({_x},{_y},{_z},{_w})

        send "&3Position 2 set: %{포탈설정b.%player%}%"

        stop


on walk on {@warpblock}:

    if difference between now and {portal-cool::%player%} is less than {@cooldown}:

        stop

    wait 1 ticks

    set {_x} to "%round down player's x-coord%" parsed as integer

    set {_y} to "%round down player's y-coord%" parsed as integer

    set {_z} to "%round down player's z-coord%" parsed as integer

    set {_w} to "%player's world%" parsed as world

    set {_포탈감지좌표} to location({_x},{_y},{_z},{_w})

    if {portal::%{_포탈감지좌표}%} is not set:

        stop

    set {portal-cool::%player%} to now

    play sound "entity.endermen.teleport" with volume 1 and pitch 1 at player

    teleport player to {portal::%{_포탈감지좌표}%}








4개의 댓글

xAQu
2024.01.26

아이템 타입에 언더바 제거 해보세요

하얀눈
2024.01.26
@xAQu

그냥 on right click on 이구문 같이 on ~ on이 안돼요 ㅜ

환타비
2024.01.26
@하얀눈

그럼 뒤에 on 을 with 로 변경 해보세영

하얀눈
2024.01.26
@환타비

뒤에 on, with , in같은 그 접속어? 같은게 붙으면 작동이 안 돼요 ㅜㅜ

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