개인 자료란 (JE)

  서버 커뮤니티

Profile 북크리퍼 대표칭호 없음
Profile

질문하기 스크립트

농부 스크립트 만드는 중인데 어떻게 하나요

2023.05.14 조회 수 245 추천 수 0
이해도 입문자 
게임버전 (JE) 1.19.2 
게임버전 (BE) 관련없음 

농부 직업 스킬에서 10%확률로 1개 더 수확하는 스크립트를 짜고 있는데 파괴한 블록이 다 자란 농작물이 아니어도 적용이 되는데 혹시 다 자란 농작물은 뭐라고 입력해야 하나요?

on break:

    if {직업.%player%} is "농부 1차" or "농부 2차" or "농부 3차":

        if event-block is ripe wheat plant:

            set {_int} to random integer between 1 and 100

            if {_int} is between 1 and 10:

                drop 1 of wheat at event-location

                message "&f&l[수확량 +1]"

            if {_int} is between 11 and 100:

                message "&f&l능력 발동 실패"    

        if event-block is ripe carrot plant:

            set {_int} to random integer between 1 and 100

            if {_int} is between 1 and 10:

                drop 1 of carrot at event-location

                message "&f&l[수확량 +1]"

            if {_int} is between 11 and 100:

                message "&f&l능력 발동 실패"    

        if event-block is ripe potato plant:

            set {_int} to random integer between 1 and 100

            if {_int} is between 1 and 10:

                drop 1 of potato at event-location

                message "&f&l[수확량 +1]"

            if {_int} is between 11 and 100:

                message "&f&l능력 발동 실패"    

1개의 댓글

허브풀떼기
2023.05.15

ripe 작물 plant 라고 치시면 됩니다.

예시 - ripe wheat plant

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

모드

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

학교가기싫다

2024-05-08

0

/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