개인 자료란 (JE)

  서버 커뮤니티

Profile anjkisdfgo 대표칭호 없음
Profile

질문하기 스크립트

물고기를 낚을때 10%확률로 추가 물고기를 낚는 구문을 넣고싶어요

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

on fishing:

    if {직업.%player%} is "어부 2차":

    if fishing state is CAUGHT_FISH:

    set {raw cod} to ItemsAdder.getCustomItem("coin:godeung")

    set {raw cod} to ItemsAdder.getCustomItem("coin:galchi")

    set {raw cod} to ItemsAdder.getCustomItem("coin:myulchi")

    set {raw cod} to ItemsAdder.getCustomItem("coin:junguri")

    set {raw cod} to ItemsAdder.getCustomItem("coin:domi")

    set {raw cod} to ItemsAdder.getCustomItem("coin:chungu")

    set {raw cod} to ItemsAdder.getCustomItem("coin:uruck")

    set {raw cod} to ItemsAdder.getCustomItem("coin:songu")

    set {_int} to random integer between 1 and 100

    if {_int} is between 1 and 8:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:godeung") named "&3고등어"

    if {_int} is between 9 and 16:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:galchi") named "&3갈치"

    if {_int} is between 17 and 24:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:myulchi") named "&3멸치"

    if {_int} is between 25 and 32:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:junguri") named "&3정어리"

    if {_int} is between 33 and 40:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:domi") named "&3도미"

    if {_int} is between 41 and 48:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:chungu") named "&3청어"

    if {_int} is between 49 and 56:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:uruck") named "&3우럭"

    if {_int} is between 57 and 64:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:songu") named "&3송어"

    if {_int} is between 65 and 76:

        set item of fishing caught entity to cod

    if {_int} is between 77 and 84:

        set item of fishing caught entity to salmon

    if {_int} is between 85 and 93:

        set item of fishing caught entity to tropical fish

    if {_int} is between 94 and 100:

        set item of fishing caught entity to pufferfish


무슨 구문을 어디에 써야할까요

Warning
댓글이 없습니다.

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

뉴스 및 창작물
/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/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