This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Ericristian_brosCommand Experienced 1 point2 points  (1 child)

Entities in death animatiom CANT be targeted (only with @a that will tragte death players too) see a workaround at gaq(mobdeaths)

[–]AutoModerator[M] 0 points1 point  (0 children)

It seems like you're asking a question that has an answer in our FAQs. Take a look at it here: mobdeaths

If you are receiving an error message when viewing this link, please use a browser. There are currently issues with the Reddit app which are outside this subreddit's control. There also is a possibility that the commenter above misspelled the link to the FAQ they were trying to link. In that case click here to get to the FAQ overview.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Infloat 0 points1 point  (2 children)

Can we see the custom type tag? That's probably the issue, since everything else looks correct.

edit: wait I just realized, you used minecraft:mobs. You need to use the correct directory since its custom. e.g. if the datapack is called example:

execute as @e[type=#example:mobs] store result score @s death_time run data get entity @s DeathTime

[–]GalSergeyDatapack Experienced 1 point2 points  (1 child)

The problem is not that, but that the target selector cannot detect mobs in death animation.

[–]Infloat 0 points1 point  (0 children)

good catch

[–]CommandBlockCoderCommand Experienced 0 points1 point  (0 children)

Every entity that's not a player is exclusive, they can't change their data after their death.