디스코드로 커맨드 커뮤니티 찾으려고 노력했지만.. 찾질 못해서 여기서 물어봅니다!!ㅜ


데이터팩 하나 만드는데 다음 커맨드가 작동이 안되는 것 같은데, 왜 작동 안하는지 모르겠습니다.


execute at @s unless items entity @s hotbar.0 air run data modify entity @e[limit=1,type=minecraft:chest_minecart,tag=Throw_Items,sort=nearest] Items[0].id set from entity @s Inventory[9].id

execute at @s unless items entity @s hotbar.0 air run data modify entity @e[limit=1,type=minecraft:chest_minecart,tag=Throw_Items,sort=nearest] Items[0].count set from entity @s Inventory[9].count

execute at @s if items entity @s hotbar.0 air run data modify entity @e[limit=1,type=minecraft:chest_minecart,tag=Throw_Items,sort=nearest] Items[0].id set from entity @s Inventory[8].id

execute at @s if items entity @s hotbar.0 air run data modify entity @e[limit=1,type=minecraft:chest_minecart,tag=Throw_Items,sort=nearest] Items[0].count set from entity @s Inventory[8].count


그래서 일단 execute if items entity @s hotbar.0 air run say 1 

을 작성하고 실행시켜봤는데 작동을 안합니다. (근데 또 unless로 바꾸면 실행됩니다.. 아이템이 없는데도요..!)


아시는분 있으시면 좋겠네요