First set the global trigger to "entity dies" and then get an if do block from the flow control tab. Next get the "is sub type of entity" procedure block and select "player" in the detection block
Get an if do block from the flow control tab and put it in the "do" section of the first if do block. Then go to the bottom of the logic tab and get the "is sub type of entity" procedure block and replace "event/target entity" with "source entity" from the Minecraft components tab and then select "player" in the entity detection block.
Now you can put the procedure logic you want in the second if do blocks "do" section.
Use is entity type of procedure block
I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
First set the global trigger to "entity dies" and then get an if do block from the flow control tab. Next get the "is sub type of entity" procedure block and select "player" in the detection block
Get an if do block from the flow control tab and put it in the "do" section of the first if do block. Then go to the bottom of the logic tab and get the "is sub type of entity" procedure block and replace "event/target entity" with "source entity" from the Minecraft components tab and then select "player" in the entity detection block.
Now you can put the procedure logic you want in the second if do blocks "do" section.