We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

14

@d to target all dead entities

8 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 2
    Registered User commented
    Comment actions Permalink

    What if we just made @e work with dead mobs?

  • 3
    Registered User commented
    Comment actions Permalink

    @e with dead mobs would be counter-intuitive (it could pick up mobs after /kill'ing them, which doesn't make sense) and also would break current datapacks. I suggesting adding a selector argument, "include_dead" (true/false) that determines whether the selector would pick up dead entities. On @e, the default is false for compatibility purposes, and on @a and @p and @s the default is true. It would also be nice if the flag is_alive was added to predicates.

  • 0
    Registered User commented
    Comment actions Permalink

    That could work as well. I don't really care which way it's implemented. I just would really prefer if we could target dead mobs.

  • 1
    Registered User commented
    Comment actions Permalink

    ItZBlockBoyZ

    When a mob dies, whether through the kill command or other means, they don't disappear instantly. For a short amount of time, they turn red and fall over, before being deleted from the world. During this time, the entity is still there, but it cannot be targeted by any target selectors (unless it is a dead player, which can be targeted using @a). This post is asking for the ability to target mobs while they are in that stage of death. I don't think the original poster meant that he wanted the ability to target mobs that have already been deleted from the world, which is something I oppose and probably what you thought when you saw this.

  • 0
    Registered User commented
    Comment actions Permalink

    To people who may be confused: this would target mobs that have died but haven't been removed from the world yet, ie when they are colored red right before they poof. This would be useful because it would allow us to differentiate between when a mob unloads and when it is actually killed, for example.

    Technically, @s can target dead mobs, but you would have to be executing as the dead entity already which isn't possible.

  • 1
    Registered User commented
    Comment actions Permalink

    Dead mobs get unloaded when they die dont they. If they didnt, the game would have some lag issues

  • 1
    Registered User commented
    Comment actions Permalink

    Or just take the existing @e and expand it with a [dead=true] to get the same effect

  • 0
    Registered User commented
    Comment actions Permalink

    how would targeting dead mob be useful