Queen_SnowEyes 72d8f06e01aa4bb7b8593d879997ce8e
이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.12.2 |
게임버전 (BE) | 1.12.x |
스크립트 버전 | 2.5.3 |
스크립트 애드온 | 잘모르겠어요 |
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::%{_포탈감지좌표}%}
xAQu
2024.01.26아이템 타입에 언더바 제거 해보세요
하얀눈
2024.01.26그냥 on right click on 이구문 같이 on ~ on이 안돼요 ㅜ
환타비
2024.01.26그럼 뒤에 on 을 with 로 변경 해보세영
하얀눈
2024.01.26뒤에 on, with , in같은 그 접속어? 같은게 붙으면 작동이 안 돼요 ㅜㅜ