개인 자료란 (JE)

  서버 커뮤니티

Profile Lowl_ 대표칭호 없음
Profile

질문하기 스크립트

스크립트 질문입니다.

2024.03.04 조회 수 74 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 2.8.3 

스크립트 예전에 썼던 구문을 그대로 가져와 쓰는데 

on rightclick:

    if player's tool's name contains "{@c}":

        set {_돈} to uncolored name of player's tool

        replace all "수표" and " " and "[" and "]" and "원" with "" in {_돈}

        set {_돈} to {_돈} parsed as integer 

        remove 1 of player's tool from player's tool

        add {_돈} to {돈::%uuid of player%.돈}

        send "수표를 사용해 돈을 얻었습니다."

        stop


send 구문에서 There are multiple command senders in an on click event. You must define which command sender to use.
라는 오류가 나오는데 rightclicking 중인 대상을 지칭해 send를 하려면 send 뒤에 객체를 어떤 대상으로 해야 할까요?

2개의 댓글

환타비
2024.03.04

send "" to player

 

이런식으로 뒤에 to player를 붙여보세용

Lowl_
2024.03.05
@환타비

감사합니다 해결됐습니당

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

/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