This is one way to do it, swap the "in inventory" to "in main hand"
This checks if the entity dies in the area so a way to check if the player killed it is to place a variable on the entity when the player attacks it then check if that entity has it before it dies.
This is one way to do it, swap the "in inventory" to "in main hand"
This checks if the entity dies in the area so a way to check if the player killed it is to place a variable on the entity when the player attacks it then check if that entity has it before it dies.
Hope it helps!