#I would like to use an entityDie to get the deadAnd if possible, I want to be able to teleport to t
1 messages · Page 1 of 1 (latest)
world.afterEvents.entityDie.subscribe(event => {
const location = event.deadEntity.location
});```
Thanks
You might put a
if (!(event.deadEntity instanceof Player)) return;
Guard clause