개인 자료란 (JE)

  서버 커뮤니티

Profile hifned 정품인증자

hifn 4b8a8f37918540f4bc26f0d86037a93d

Profile

질문하기 스크립트

아이템 수량 감지

2024.09.01 조회 수 36 추천 수 0
게임버전 (BE) 관련없음 

on inventory click:

    if inventory name is "상점판매":

        if clicked item is nether star named "&b판매하기":

            loop 27 times:

                set {_%loop-number%} to slot loop-number -1 of current inventory

                if {_%loop-number%} is book named "&e[&2아이템&e] &f노트" with lore " &f가치가 있는 물건인 것 같다":

                    add item amount of {_%loop-number%}*3000 to {_가격}


이 구문을 사용중인데  if {_%loop-number%} is book named "&e[&2아이템&e] &f노트" with lore " &f가치가 있는 물건인 것 같다": 에서 아이템 이 겹쳐저 있으면 감지를 못합니다 2 of 를 사용하면 2개로 겹쳐야 발동하는 거 보니 기본적으로 1 of 가 되어있는 것 같은데 해제 할 수 있는 방법 있나요? 

1개의 댓글

windy_wind
2024.09.03

해결법

1)

if 1 of {_%loop-number%} is book named "&e[&2아이템&e] &f노트" with lore " &f가치가 있는 물건인 것 같다"

2)

function getBook() :: item:

@return book named "&e[&2아이템&e] &f노트" with lore " &f가치가 있는 물건인 것 같다"

 

@#action: book 아이템을 설정하는 구문도 다 getBook()으로써 설정했다면

@if 1 of {_%loop-number%} is 1 of getBook():

3) nbt

ex) nbt compound of {_%loop-number%} has "TEST":

뉴스 및 창작물
/files/thumbnails/246/898/003/262x150.crop.jpg?20241008102328

레드스톤

단다단 - 오토노케(オトノケ) | 마인크래프트 노트블럭 커버

노트블럭전문가

2024-10-08

0

/files/thumbnails/348/896/003/262x150.crop.jpg?20241006103035

디도스/봇테러등등을 낚는 방법 3

물귀신

2024-10-06

1

/files/thumbnails/839/895/003/262x150.crop.jpg?20241006021227

SRV레코드는 보안도메인이 아닙니다. [서버오픈시 필독]

물귀신

2024-10-05

2

/files/thumbnails/648/892/003/262x150.crop.jpg?20241002184058

아티클

마인크래프트 라이브 2024 후기: 무성의가 느껴졌던 '절망편' 라이브

라비

2024-10-02

2

/files/thumbnails/693/890/003/262x150.crop.jpg?20241007140310

소식

[방송인 필독] 시참 컨텐츠 방송인분들께 DDoS(디도스) 공격을 퍼붓는 용의자 특정중, 예방 & 대처법 정리 9

해그

2024-10-01

1