개인 자료란 (JE)

  서버 커뮤니티

Profile LEMONY1199 대표칭호 없음
Profile

질문하기 스크립트

스크립트 질문 - 광산

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

on every 1 seconds:

    set {광산} to random integer between 1 and 1000



on break:

    if event-block is stone or coal ore or copper ore or iron ore or redstone ore or lapis ore or gold ore or diamond ore or emerald ore:

        if {광산} is between 1 and 717: #돌 70퍼

            execute console command "fill 3 2 7 -1 0 7 stone replace air"

            stop

        if {광산} is between 718 and 818: # 석탄 10퍼

            execute console command "fill 3 2 7 -1 0 7 coal_ore replace air"

            stop

        if {광산} is between 818 and 888: # 구리 7퍼

            execute console command "fill 3 2 7 -1 0 7 copper_ore replace air"

            stop

        if {광산} is between 889 and 939: # 철 5퍼

            execute console command "fill 3 2 7 -1 0 7 iron_ore replace air"

            stop

        if {광산} is between 940 and 970: # 레드스톤 3퍼

            execute console command "fill 3 2 7 -1 0 7 redstone_ore replace air"

            stop

        if {광산} is between 971 and 986: # 청금석 1.5퍼

            execute console command "fill 3 2 7 -1 0 7 lapis_ore replace air"

            stop    

        if {광산} is between 987 and 994: # 금 0.7퍼

            execute console command "fill 3 2 7 -1 0 7 gold_ore replace air"

            stop

        if {광산} is between 995 and 998: # 에메랄드 0.3퍼

            execute console command "fill 3 2 7 -1 0 7 emerald_ore replace air"

            stop

        if {광산} is between 999 and 1000: # 다이아 0.1퍼

            execute console command "fill 3 2 7 -1 0 7 diamond_ore replace air"

            stop


블럭 한칸이 계속 비네요..

뭐가 문제일까요..?


+ seconds 보다 작은 단위가 있을까요?




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