개인 자료란 (JE)

  서버 커뮤니티

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

Nixel1212 08ae6900808b47b195d96aeebadd3b70

Profile

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

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

2020.03.01 조회 수 1794 추천 수 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/520/751/003/262x150.crop.jpg?20240328020349

레드스톤

마인크래프트 노트블록으로 만든 『 Bling‐Bang‐Bang‐Born 』 1

Sonttukk

2024-03-23

1

/files/thumbnails/467/742/003/262x150.crop.jpg?20240311163123

레드스톤

[노트블럭커버] MILGRAM -ミルグラム(밀그램)- / 아마네 「숙청 행진」 제 2심 2

리비온

2024-03-11

0

/files/thumbnails/846/741/003/262x150.crop.jpg?20240310221214

레드스톤

워든 vs 라마 200마리 1

GlassesFilm

2024-03-10

0

/files/thumbnails/542/739/003/262x150.crop.jpg?20240309070457

레드스톤

[고인의 명복을 빕니다][노트블럭]드래곤볼 GT 오프닝 - 점점 마음이 끌려

리비온

2024-03-09

0

/files/thumbnails/326/738/003/262x150.crop.jpg?20240328020414

레드스톤

마인크래프트 노트블록으로 만든 『 Build Our Machine 』

Sonttukk

2024-03-07

0