개인 자료란 (JE)

  서버 커뮤니티

Profile 하얀눈 대표칭호 없음

Queen_SnowEyes 72d8f06e01aa4bb7b8593d879997ce8e

Profile

질문하기 스크립트

포탈스크립트 에러

2024.01.26 조회 수 27 추천 수 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/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1