개인 자료란 (JE)

  서버 커뮤니티

Profile 하늘의파편 대표칭호 없음

Nixel1212 08ae6900808b47b195d96aeebadd3b70

Profile

파티클(스킬) 제작 애드온

[ 스크립트 스킬강좌 ( 6-2 ) ] 파멸의 낫

2020.03.01 조회 수 1809 추천 수 0

안녕하세요 드온이입니다 오늘은 스킬제작 강좌 4-4편 파멸의낫 강좌를 할겁니다

먼저  완성형부터 보고  설명한다음 강좌를 시작하겠습니다

74fccc655dc96045a5b38cc4345b84f7.gif

일단 설명하자면 5초간 무적이 되는 스킬입니다 위 GIF에서는 무적상태일떄

데미지를 받으면 빨간 색 파티클이 뜨는 데요

그 파티클만 따로 보여주면

355e162e607c45e7a3accc5a57c9d615.gif

요런색이 뜹니다 참고로 이거는 랜덤 색도 됩니다
그럼 이제 설명을 마치고 강좌를 시작하겠습니돠~~~


먼저 구문은


command /파멸의낫스킬1-2:

    trigger:

        if player's tool is diamond pickaxe with name "&4&l파멸&f&l의&5&l낫":

            if player is sneaking:

                set {파멸의낫.무적기.%player%} to true

                execute player command "/particle dust 0.5 0 10 2 ~ ~1 ~ 0.5 0.5 0.5 1 100"

                execute player command "/playsound minecraft:entity.wither.shoot player @s ~ ~ ~ 100 2"

                wait 1 seconds

                execute player command "/particle dust 0.5 0 10 2 ~ ~1 ~ 0.5 0.5 0.5 1 100"

                execute player command "/playsound minecraft:entity.wither.shoot player @s ~ ~ ~ 100 2"

                wait 1 seconds

                execute player command "/particle dust 0.5 0 10 2 ~ ~1 ~ 0.5 0.5 0.5 1 100"

                execute player command "/playsound minecraft:entity.wither.shoot player @s ~ ~ ~ 100 2"

                wait 1 seconds

                execute player command "/particle dust 0.5 0 10 2 ~ ~1 ~ 0.5 0.5 0.5 1 100"

                execute player command "/playsound minecraft:entity.wither.shoot player @s ~ ~ ~ 100 2"

                wait 1 seconds

                execute player command "/particle dust 0.5 0 10 2 ~ ~1 ~ 0.5 0.5 0.5 1 100"

                execute player command "/playsound minecraft:entity.wither.shoot player @s ~ ~ ~ 100 2"

                delete {파멸의낫.무적기.%player%}

on damage of player:

    if {파멸의낫.무적기.%victim%} is true:

        cancel event

        execute victim command "/particle dust 10 0 0 1 ~ ~1 ~ 0.5 0.5 0.5 1 100"

        execute victim command "/playsound minecraft:entity.wither.hurt player @s ~ ~ ~ 100 2"

on rightclick:

    if player's tool is diamond pickaxe with name "&4&l파멸&f&l의&5&l낫":

        if player is sneaking:

            execute player command "/파멸의낫스킬1-2"

요런 식으로 씁니다 일단 여기서 설명하거는

if player is sneaking:

 이거 일텐데요 여기서 이 구문의 뜻은

만일 플레이어가 웅크리고 있을떄 (숄롸숄롸숄롸)

 라는 뜻이 됩니다 말그대로 쉬프트 눌른상태로 파멸의낫 들고 우클릭하면
되는겁니다

그럼 여기서 강좌를 마치기전에

5-1편은 파티클하고 GUI연동 시키는거 하는거하고
특별-1편은 제가 어떤 이벤트를 할겁니다

그럼 여기서 강좌 마치겠습니다 감사합니다


https://discord.gg/2gxSqWu - 마인크래프트 개발자 디스코드

4개의 댓글

ㅇㄷㅇㄷㅇ
2020.03.01

스크립트로도 매직스펠 못지않게 퀄리티가 높네요.

하늘의파편
2020.03.01
@ㅇㄷㅇㄷㅇ

ㅎㅎ 감사합니다

 

테크미
2020.03.01

잘봤습니당

하늘의파편
2020.03.02
@테크미

다음엔 더욱더 열심히 쓰겠습니다 >_<

뉴스 및 창작물
/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240426223813

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1