I'm currently working on a simple thing where whenever an entity near me dies, it gives me an item. I can do all of this, save for test when an entity dies. On research, many solutions are there for testing for specific entity deaths using scoreboards, but I just want to use the DeathTime NBT tag to test for any mob death. My command is as follows:
execute if entity @e[nbt={DeathTime:1}]
This doesn't detect any mob deaths. Is it possible to use a solution similar to this, or are scoreboards required? Edit: I am not in the snapshot, I'm in 1.13.2.