이해도 | 중급자 |
---|---|
게임버전 (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
이긴 한데 뭐가 잘못되었나요?
댓글이 없습니다.
새로운 댓글을 등록해 주세요!