마크 자바 1.19.2버전 플레이하고 있습니다.제가 석탄블록을 손에 들고 대상(엔티티)를 때리면 맞은 대상의 머리 위에 tnt가 바로 터지도록 만들고 싶은데 쉽지 않습니다. 커맨드 완성해 주시면 감사하겠습니다.
커멘드 설정:반복(Repeat) 항상 활성화(Always Active)
명령어(코드)
execute as @e[type=!player] at @s if entity @s[nbt={HurtTime:10}] if entity @p[distance=..5,nbt={SelectedItem:{id:"minecraft:coal_block"}}] run summon tnt ~ ~2 ~ {Fuse:0}