How to detect mobs taking damage?
Solution 1:
When testing for NBT, you need to put the correct data type for numbers.
The HurtTime
tag is a Short value, so you must specify so by suffixing your number with an s
:
{HurtTime:10s}
When testing for NBT, you need to put the correct data type for numbers.
The HurtTime
tag is a Short value, so you must specify so by suffixing your number with an s
:
{HurtTime:10s}