The current behavior of dead entities is that they cannot be targeted by selectors. However, predicates can still detect them as vehicles/passengers, which means there is currently no reliable way to test for certain entities that have just been killed. I propose one of several solutions:
Add a sub-command "execute on victim" that, when ran from a "player_killed_entity" advancement, can change context to the entity who was just killed.
Change targeting of dead entities to be allowed, preferably through the use of a predicate flag.
Fix the inconsistent behavior of predicates checking for existing vehicles/passengers.
Linked issues
duplicates 1
Comments 3
Thank you for your report!
We're tracking this issue in MC-108307, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
You are mistaken, selectors can target them (namely @s),it's just that @e does not allow selecting dying entities. The vehicle/passenger check is not the same as an @e[RIDER] but rather just goes to that entity directly.
None of the predicate / execute on / @s behavior is a bug, and @e behavior is won't fix: MC-108307.