#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)

hot junco
#

I would like to use an entityDie to get the dead
And if possible, I want to be able to teleport to the place where I died.

fervent pelican
hot junco
#

Thanks

tardy saffron
# hot junco Thanks

You might put a

if (!(event.deadEntity instanceof Player)) return; 

Guard clause

sand pond
#

check if the entity that dies is a player.

#

( the event fires even if a mob other than the player dies )