개인 자료란 (JE)

  서버 커뮤니티

Profile yusin12 대표칭호 없음

yusin12 1e0511f92377434a9f27b5724c29fbe3

Profile

강좌 자바 에디션(JE) 커맨드 응용

37. 귀환서(모루 안되는 버전)

2023.05.24 조회 수 1445 추천 수 1
게임버전 1.19.x 

저번에 만들었던 귀환서에 모루로 "귀환 주문서"라고 하면 된다고 하여 다시 글을 씀다.

상관 없으신 분들은 저번 강의 보시면 됌다!


1. 새로운 귀환서 지급 명령어

give @p paper{display:{Name:"{\"text\":\"귀환 주문서\"}",Lore:["{\"text\":\"귀환 주문서이다.\"}"]}}

Lore은 아이템의 설명을 적어주는 nbt태그에요!

이렇게 말이죠!

이제 저번에 했던 커맨드에 execute구문에 Lore부분만 추가하면 되요!



1번 커맨드 {반복형 / 무조건적 / 레드스톤 필요}

execute as @a[nbt={Inventory:[{id:"minecraft:paper",Count:1b,Slot:-106b,tag:{display:{Name:"{\"text\":\"귀환 주문서\"}",Lore:["{\"text\":\"귀환 주문서이다.\"}"]}}}]}] at @s run title @a actionbar [{"selector":"@s","color":"green","bold":"true"},{"text":"님의 의해서 귀환 준비 중.."}]

2번 커맨드 {반복형 / 무조건적 / 레드스톤 필요}

scoreboard objectives add Timer dummy

3번 커맨드 {연쇄형 / 무조건적 / 항상 활성화}

execute as @a[nbt={Inventory:[{id:"minecraft:paper",Count:1b,Slot:-106b,tag:{display:{Name:"{\"text\":\"귀환 주문서\"}",Lore:["{\"text\":\"귀환 주문서이다.\"}"]}}}]}] at @s run scoreboard players add @s Timer 1

4번 커맨드 {연쇄형 / 무조건적 / 항상 활성화}

execute as @a[nbt={Inventory:[{id:"minecraft:paper",Count:1b,Slot:-106b,tag:{display:{Name:"{\"text\":\"귀환 주문서\"}",Lore:["{\"text\":\"귀환 주문서이다.\"}"]}}}]},scores={Timer=60..}] at @s ru
n tp @s ~ ~2 ~

%~ ~2 ~ 에다가 자신이 원하는 좌표를 쓰면 됌다!%

5번 커맨드 {연쇄형 / 조건적 / 항상 활성화}

execute as @a[scores={Timer=60..}] at @s run item replace entity @s weapon.offhand with air 1

6번 커맨드 {연쇄형 / 조건적 / 항상 활성화}

execute as @a[scores={Timer=60..}] at @s run scoreboard players reset @s Timer

명령어의 해석을 쓰지 않는 이유는 35번째 강의 내용과 Lore빼면 똑같기 때문입니다!




23개의 댓글

yusin12
2024.05.13
@랭듀

execute as @a[scores={Timer=60..}] at @s if items entity @s weapon.offhand paper[minecraft:lore=['"귀환 주문서이다."'],minecraft:custom_name='"귀환 주문서"'] run title @a actionbar [{"selector":"@s","color":"green","bold":true},{"text":"님의 의해서 귀환 준비 중.."}]

리에셈
2024.05.14
@yusin12

execute as @a[scores={Timer=60..}] at @s if items entity @s weapon.offhand paper[minecraft:lore=['"귀환 주문서이다."'],minecraft:custom_name='"귀환 주문서"'] run title @a actionbar [{"text":"님의 의해서 귀환 준비 중.."}]

 

scoreboard objectives add Timer dummy

 

execute as @a at @s if items entity @s weapon.offhand paper[minecraft:lore=['"귀환 주문서이다."'],minecraft:custom_name='"귀환 주문서"'] run scoreboard players add @s Timer 1

 

execute as @a[scores={Timer=60..}] at @s if items entity @s weapon.offhand paper[minecraft:lore=['"귀환 주문서이다."'],minecraft:custom_name='"귀환 주문서"'] run tp @s 82 101 51

 

execute as @a[scores={Timer=60..}] at @s run item replace entity @s weapon.offhand with air 1

 

execute as @a[scores={Timer=60..}] at @s run scoreboard players reset @s Timer

 

이렇게 다 입력한거 같은데 구동이 안되는 이유가 있을까요?ㅜㅜ

랭듀
2024.05.13
@yusin12

혹시 커맨드 1번 알려주실 수 있을까요

뉴스 및 창작물
/files/thumbnails/844/958/003/262x150.crop.jpg?20250111133615

건축

중세판타지 성 / '판타시아' / 1인 건축 완성 1

콩산

2025-01-11

0

/files/thumbnails/124/946/003/262x150.crop.jpg?20241225132838

모드

Record, Catch Update || Cobblemon 1.6 Official Trailer

BMlight

2024-12-25

2

/files/thumbnails/945/944/003/262x150.crop.jpg?20241223202710

이벤트

세븐일레븐 건축 강좌 보고 댓글달면 건축 가이드 받을 수 있어요!

다코미

2024-12-23

0

/files/thumbnails/206/939/003/262x150.crop.jpg?20241213131516

상품

《레고 마인크래프트 아이디어 북》 출간!

다코미

2024-12-13

1

/files/thumbnails/500/937/003/262x150.crop.jpg?20241210152228

상품

《마인크래프트 1일 1페이지 아이디어 북》 출간!

다코미

2024-12-10

0

/files/thumbnails/557/934/003/262x150.crop.jpg?20241206162647

상품

《마인크래프트 건축가이드 미니 프로젝트 4》 출간!

다코미

2024-12-06

0