개인 자료란 (JE)

  서버 커뮤니티

Profile ICEDVIP 대표칭호 없음
Profile

질문하기 스크립트

if clicked item is not air: 에서 오류가 납니다.

2 시간 전 조회 수 4 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 2.9.2 

on inventory click:

    if name of current inventory is "&b상점_식료품":

        cancel event

        if clicked item is not air:

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

            replace all "판매 가격: " and "미르" with "" in {_lore}

            set {_lore} to {_lore} parsed as integer

            if {%player.돈} is smaller than {_lore}:

                message "&c돈이 부족해 해당 아이템을 구매할 수 없습니다."

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

            else:

                set {_item} to clicked item

                delete lore of {_item}

                give {_item} to player

                subtract {_lore} from {%player%.돈}

                play sound "UI_BUTTON_CLICK" with volume 0.5 to the player


여기서 if clicked item is not air: 구문이 오류가 납니다.

어떡하죠..?

Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/677/856/003/262x150.crop.jpg?20240913205849

아티클

마인크래프트 개발의 미래

학교가기싫다

2024-09-13

1

사진이 없습니다.

모드

아이리스 쉐이더

gyeol12

2024-09-07

0

/files/thumbnails/382/873/003/262x150.crop.jpg?20240903125347

레드스톤

[노트블럭커버] 숙청행진 - 밀그램

노트블럭전문가

2024-09-03

0

/files/thumbnails/069/864/003/262x150.crop.jpg?20240819102737

레드스톤

[노트블럭커버] 만찬가 - tuki

노트블럭전문가

2024-08-19

1

/files/thumbnails/647/816/003/262x150.crop.jpg?20240619112336

건축

숭례문(프리퀄) 4

KHC

2024-06-19

1