개인 자료란 (JE)

  서버 커뮤니티

Profile 제작대 에메랄드 유저

tey795 97c4795ee5d2407da33599adbf904d15

Profile

자료 공통 리뷰, 강좌 그외의 분야

마인크래프트 스킬 만들기! (1탄) 치유 스킬을 만들어보자!

2021.05.04 조회 수 3960 추천 수 0

안녕하세요! 제작대입니다! 오늘은 마인크래프트 스킬 만들기를 할 겁니다! 첫 탄은  힐 스킬인데요, 그럼 만듭시다!

[이 강좌에는 오타가 있을 수 있습니다.]


우선 아래의 명령어를 쳐주세요! (멀티용)

team add blue

team add red

하고 원하는 플레이어들을 한 팀으로 넣으세요!

team join <팀이름> <플레이어>


[반복형] [무조건적] [항상 활성화]

execute as @a[team=red,nbt={Inventory:[{id:"minecraft:emerald",Count:1b,Slot:-106b}]}] run tag @s add h

설명: 왼손에 에메랄드를 들고있고 팀이 red인 사람은 h라는 태그가 붙는다


[연쇄형] [조건적] [항상 활성화]

replaceitem entity @a[tag=h] weapon.mainhand emerald

설명: 태그가 h인 사람의 매인 핸드(플레이어가 쓰고 있는 칸)를 에메랄드로 바꿉니다.


[연쇄형] [조건적] [항상 활성화]

replaceitem entity @a[tag=h] weapon.offhand air 

설명: 태그가 h인 사람의 왼손에 있는 아이템을 공기로 바꾼다.


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=h] at @s run particle happyVilliger ~ ~0.3 ~ 1 1 1 0 50

설명: 태그가 h인 사람 위주로 happyVillager 파티클이 생성된다


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=h] at @s run particle totem_of_undying ~ ~0.3 ~ 1 1 1 0 50

설명: 태그가 h인 사람 위주로 totem_of_undying 파티클이 생성된다


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=h] at @s run effect give @a[distance=..2] instant_health 1 3 true

설명: 태그가 h인 사람 위주로 2칸 이내에 있는 모든 플레이어는 즉시치유 이펙트를 1초 받는다.


[연쇄형] [조건적] [항상 활성화]

tag remove @a[tag=h] h


이렇게 하시고 이제 블루팀 용을 만들어 줍시다!


[반복형] [무조건적] [항상 활성화]

execute as @a[team=blue,nbt={Inventory:[{id:"minecraft:emerald",Count:1b,Slot:-106b}]}] run tag @s add e

설명: 왼손에 에메랄드를 들고있고 팀이 blue인 사람은 e라는 태그가 붙는다


[연쇄형] [조건적] [항상 활성화]

replaceitem entity @a[tag=e] weapon.mainhand emerald

설명: 태그가 e인 사람의 매인 핸드(플레이어가 쓰고 있는 칸)를 에메랄드로 바꿉니다.


[연쇄형] [조건적] [항상 활성화]

replaceitem entity @a[tag=e] weapon.offhand air 

설명: 태그가 e인 사람의 왼손에 있는 아이템을 공기로 바꾼다.


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=e] at @s run particle happyVilliger ~ ~0.3 ~ 1 1 1 0 50

설명: 태그가 e인 사람 위주로 happyVillager 파티클이 생성된다


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=e] at @s run particle totem_of_undying ~ ~0.3 ~ 1 1 1 0 50

설명: 태그가 e인 사람 위주로 totem_of_undying 파티클이 생성된다


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=e] at @s run effect give @a[distance=..2] instant_health 1 3 true

설명: 태그가 e인 사람 위주로 2칸 이내에 있는 모든 플레이어는 즉시치유 이펙트를 1초 받는다.


[연쇄형] [조건적] [항상 활성화]

tag remove @a[tag=e] e


싱글용:


[반복형] [무조건적] [항상 활성화]

execute as @a[nbt={Inventory:[{id:"minecraft:emerald",Count:1b,Slot:-106b}]}] run tag @s add h

설명: 왼손에 에메랄드를 들고있는 사람은 h라는 태그가 붙는다


[연쇄형] [조건적] [항상 활성화]

replaceitem entity @a[tag=h] weapon.mainhand emerald

설명: 태그가 h인 사람의 매인 핸드(플레이어가 쓰고 있는 칸)를 에메랄드로 바꿉니다.


[연쇄형] [조건적] [항상 활성화]

replaceitem entity @a[tag=h] weapon.offhand air 

설명: 태그가 h인 사람의 왼손에 있는 아이템을 공기로 바꾼다.


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=h] at @s run particle happyVilliger ~ ~0.3 ~ 1 1 1 0 50

설명: 태그가 h인 사람 위주로 happyVillager 파티클이 생성된다


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=h] at @s run particle totem_of_undying ~ ~0.3 ~ 1 1 1 0 50

설명: 태그가 h인 사람 위주로 totem_of_undying 파티클이 생성된다


[연쇄형] [조건적] [항상 활성화]

execute as @a[tag=h] at @s run effect give @a[distance=..2] instant_health 1 3 true

설명: 태그가 h인 사람 위주로 2칸 이내에 있는 모든 플레이어는 즉시치유 이펙트를 1초 받는다.


[연쇄형] [조건적] [항상 활성화]

tag remove @a[tag=h] h



끝입니다! 안녕히계십쇼!




3개의 댓글

아스드프
2021.05.04

흔한 데이터팩 재귀함수(몹 없이 만들기 1}

execute as @a[tag=ironman,nbt={SelectedItemSlot:0},scores={ironman=1..,ironpower=5..,slot=0,loop=0}] at @s run scoreboard players remove @s ironpower 5

scoreboard players add @a[tag=ironman,nbt={SelectedItemSlot:0},scores={ironman=1..,slot=0}] loop 1

execute as @a[tag=ironman,nbt={SelectedItemSlot:0},scores={ironman=1..,slot=0,loop=..59}] positioned ^ ^ ^0.5 if block ~ ~ ~ #irooon:likeair run function irooon:repulser

execute as @a[tag=ironman,nbt={SelectedItemSlot:0},scores={ironman=1..,slot=0,loop=..59}] positioned ^ ^ ^0.5 if block ~ ~ ~ #irooon:likeair run particle minecraft:dust 0 1 0.918 1 ~ ~ ~ 0 0 0 0 5 force

execute as @a[tag=ironman,nbt={SelectedItemSlot:0},scores={ironman=1..,slot=0,loop=..59}] positioned ^ ^ ^0.5 if block ~ ~ ~ #irooon:likeair run effect give @e[distance=..1,tag=!ironman,type=#irooon:undead] instant_health 1 2 true

execute as @a[tag=ironman,nbt={SelectedItemSlot:0},scores={ironman=1..,slot=0,loop=..59}] positioned ^ ^ ^0.5 if block ~ ~ ~ #irooon:likeair run effect give @e[distance=..1,tag=!ironman,type=!#irooon:undead] instant_damage 1 2 true

execute as @a[tag=ironman,nbt={SelectedItemSlot:0},scores={ironman=1..,slot=0,loop=60..}] run scoreboard players set @s loop 0

데이터팩이란거 있지마셈

(외부 반복되는 루프함수가 있어야함)

제작대
2021.05.04
@아스드프

아닠ㅋㅋㅋ 뭘 하신거에욬ㅋㅋㅋㅋㅋㅋ 그리고 강좌를 봐주셔서 감사합니다!

아스드프
2021.05.04
@제작대

데이터팩 같은 경우는 재귀함수가 가능해서 커맨드로 가능한 탄환 구조들과는 달리 한번에 파악 하고 나가게 할 수 있거든요(잘못하면 컴터집니다)

뉴스 및 창작물
/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

/files/thumbnails/932/765/003/262x150.crop.jpg?20240410124459

레드스톤

마인크래프트 노트블록으로 만든 『 밤양갱 (Bam Yang Gang) 』

노트블럭전문가

2024-04-10

0

/files/thumbnails/403/765/003/262x150.crop.jpg?20240409190538

레드스톤

마인크래프트 노트블록으로 만든 『 밤양갱 (Bam Yang Gang) 』

Sonttukk

2024-04-09

4