개인 자료란 (JE)

  서버 커뮤니티

Profile 지구12345 대표칭호 없음
Profile

질문하기 커맨드

블럭 설치(컨베이어 벨트)

13 일 전 조회 수 16 추천 수 0
이해도 중급자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 

버전:JE 1.20.6

커맨드에서 바라보는 방향 5칸 앞에 블럭을 설치하려고 하는데 사용을 하면 아이템이 하나 사라지게 만들었는데 설치를 하면 아이템이 그대로 있어요ㅠㅠ 커맨드는

-블럭 미리보기&설치-

1.execute as @a[nbt={SelectedItem:{id:"minecraft:stone_slab"}}] at @s anchored eyes positioned ^ ^ ^5 align xyz if block ~ ~ ~ minecraft:air run summon minecraft:falling_block ~0.5 ~ ~0.5 {NoGravity:1b,Tags:["convbelt"],Time:0,BlockState:{Name:diorite_slab,Properties:{type:"top"}},DropItem:false}

2.execute as @e[tag=convbelt] at @s run scoreboard players add @s cdt 1

3.kill @e[scores={cdt=2}]

4.execute as @a[nbt={Inventory:[{id:"minecraft:stone_slab",Slot:-106b}]}] at @s anchored eyes positioned ^ ^ ^5 align xyz if block ~0.5 ~ ~0.5 minecraft:air run setblock ~0.5 ~ ~0.5 minecraft:stone_slab[type=top]\

-아이템 사용-

1.execute as @a[nbt={Inventory:[{id:"minecraft:stone_slab",Slot:-106b}]}] at @s anchored eyes positioned ^ ^ ^5 align xyz unless block ~0.5 ~ ~0.5 minecraft:air run give @p minecraft:stone_slab[minecraft:fire_resistant= {},minecraft:item_name='{"bold":true,"color":"gray","extra":[{"bold":true,"color":"dark_green","text":"(1티어)"}],"text":"컨베이어 벨트"}',minecraft:lore=['{"bold":true,"text":"아이템을 운송할 수 있습니다."}'],minecraft:unbreakable= {}] 1

2.execute as @a[nbt={Inventory:[{id:"minecraft:stone_slab",Slot:-106b}]}] at @s run clear @a minecraft:stone_slab 1

3.execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:stone_slab"}]}] at @s run item replace entity @s weapon.mainhand from entity @s weapon.offhand

4.execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:stone_slab"}]}] at @s run item replace entity @s weapon.offhand with air


이긴 한데 뭐가 잘못되었나요?

Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/841/773/003/262x150.crop.jpg?20240526120908

레드스톤

마인크래프트 노트블록버전 『 봄을 고하다 (春を告げる) 』 [더블옥타브 버전]

노트블럭전문가

2024-05-26

0

/files/thumbnails/712/796/003/262x150.crop.jpg?20240525085438

레드스톤

마인크래프트 노트블록으로 만든 『 봄을 고하다 (春を告げる) 』 1

Sonttukk

2024-05-25

0

/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 모드에서 악성코드 발견 3

학교가기싫다

2024-05-08

1