이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.21.3 |
게임버전 (BE) | 관련없음 |
예전처럼 아이템을 얻을 때
/give @s minecraft:stone{Tags:["dd"]} 이런 식의 구문이 안 먹혀서
/give @s minecraft:stone[minecraft:custom_data={Tags:["dd"]}] 이렇게 쓴다는 것 까지는 이해를 했는데
이렇게 얻은 아이템은 커맨드에서 어찌 감지하나요?;; 왼손에 든 걸 감지하고 싶어서
execute as @a[nbt={Inventory:[{id:"minecraft:stone",Slot:-106b,tag:{Tags:["dd"]}}]}] at @s say 1
이렇게 했더니 실행이 안되네요; 그냥 tag:{"dd"}로 해도 마찬가지고.. custom_data:{Tags:["dd"]} 이렇게 해도 안되구요..
작은콘
2025.02.10execute as @a[nbt={Inventory:[{id:"minecraft:stone",Slot:-106b,tag:{Tags:["dd"]}}]}] at @s run say 1
이것도 안되려나
노을넴
2025.02.10위키는 찾아보셨나욘?
Sidite
2025.02.11nbt={} 아이템 감지는 deprecated입니다. if items 사용하세요.
/execute as @a if items entity @s weapon.offhand *[minecraft:custom_data={Tags:["dd"]}] at @s run say Hello world!
마그신
2025.02.11감사합니다!