개인 자료란 (JE)

  서버 커뮤니티

Profile jackoqp 정품인증자

jackoqp a392bd442f034ee6b45a6302a5010b49

Profile

질문하기 스크립트

스크립트 질문

2023.08.28 조회 수 45 추천 수 0
이해도 입문자 
게임버전 (JE) 1.19.4 
게임버전 (BE) 1.19.x 
스크립트 버전 2.7.0-beta3 
스크립트 애드온 에드온 다 있음 

상점 스크립트 구문인데 give 1 elytra named "" to player 여기에다가 설명을 써도안나옵니다

40,54는 오류가뜹니다 오류는 Can't understand this condition/effect: set elytra to clicked item

이렇게 둘다 뜹니다. 도와주십쇼!


on inventory click:

    if name of current inventory is "도구상점":

        cancel event

        if "%index of clicked slot%" is "10":

            if click type is left mouse button:

                cancel event 

                set {_lore} to uncolored line 1 of lore of clicked item

                replace all "가격 " and ":" and " " and "원" with "" in {_lore}

                set {_lore} to {_lore} parsed as integer

                if {money::%uuid of player%} >= 2000 is smaller than {_lore}:

                    send "&c돈이 부족합니다" to player

                    play sound "entity.experience_orb.pickup" with volume 0.5 and pitch 1 to the player

                else:

                    set elytra to clicked item

                    delete lore of elytra

                    if player has enough space for elytra:

                        give 1 elytra named "" to player

                        remove 2000 from {money::%uuid of player%}

                        play sound "UI_BUTTON_CLICK" with volume 0.3 and pitch 3 to the player

                    else:

                        send "&c&l인벤토리에 충분한 공간이 없습니다!" to player

                                    

            else if click type is right mouse button:

                if clicked raw slot is smaller than 27:

                    set {_lore} to uncolored line 1 of lore of clicked item

                    replace all "가격 " and ":" and " " and "원" with "" in {_lore}

                    set {_lore} to {_lore} parsed as integer

                    set elytra to clicked item

                    delete lore of elytra

                    if player has 1 of elytra:

                        remove 1 of elytra from player's inventory

                        add 1000 to {money::%uuid of player%}

                        play sound "entity.experience_orb.pickup" with volume 0.5 and pitch 3 to the player

                    else:

                        send "&c현재 해당 아이템을 가지고 있지 않아 판매할 수 없습니다" to player

                        play sound "UI_BUTTON_CLICK" with volume 0.3 and pitch 3 to the player

1개의 댓글

테빌
2023.08.28

Set elytra of player가 뭘 의미하는지..?

일단 마우스에 있는 템을 바꾸시려는건

set cursor item to clicked item

이렇게 하시면 됩니다

아니면 set clicked item to elytra

이렇게 하시는건감..?

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

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

학교가기싫다

2024-05-08

1

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

업데이트

마인크래프트 자바 에디션 스냅샷 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