@n can select dying entities, unlike @e
@n is supposed to be equivalent to @e[limit=1,sort=nearest], but @e does not select entities that are in the process of dying, while @n does.
How to Reproduce:
- Summon 2 pigs.
- Name each a different thing.
- RunĀ /kill @n[type=pig] twice in quick succession.
- Note that it kills the same pig twice.
- Repeat, but use /kill @e[type=pig,limit=1,sort=nearest] twice instead
- Note that both pigs are killed.
I'm assuming that this is not intended behavior because it was not described to function this way in the patch notes.
2024-05-27, 12:22 AM
2024-06-02, 12:52 PM
2024-05-28, 08:31 AM
6
5