개인 자료란 (JE)

  서버 커뮤니티

Profile 루커스 대표칭호 없음
Profile

질문하기 자료

순간이동 관련 질문

2023.11.13 조회 수 28 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 1.20.x 

하이픽셀 서버에서 파쿠르를 하다가 발판을 누르면 처음 출발지점에 텔레포트 되듯이 플레이어가 시작버튼을 누르면 시작 지점으로 tp 할 수 있는 아이템을 인벤창 9번째 줄에 추가 되고 그 아이템을 우클릭 했을 때 시작 지점에 순간 이동이 되는 플러그인이나 스크립트가 있나요? 

1개의 댓글

루커스
2023.11.15

on right click with paper:

if player's tool's name is "티켓":

if player's inventory's slot 8 is air: # 9번째 슬롯에 티켓이 없는 경우

set player's inventory's slot 8 to a paper named "티켓"

if {_cooldown.%player%} is not set:

set {_cooldown.%player%} to now

else if {_cooldown.%player%} is smaller than now:

set {_cooldown.%player%} to now + 5 seconds

set {_random.x} to a random number between 0 and 1000

set {_random.z} to a random number between 0 and 1000

set {_random.x} to round({_random.x})

set {_random.z} to round({_random.z})

execute console command "tp %player% 100 70 -50"

send "~~로 이동합니다!" to player

else:

send "티켓 사용 대기 중입니다." to player

이렇게 써서 서버를 열었는데 계속

[00:38:01 INFO]: [Skript] Line 8: (테스트.sk)

[00:38:01 INFO]: Can't understand this expression: 'now + 5 seconds'

[00:38:01 INFO]: Line: set {_cooldown.%player%} to now + 5 seconds 라고 오류가 뜨네요 어떻게 고쳐야 할까요?

 

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