clarify, or rather convolute the docs
This commit is contained in:
1 parent
d6eb53b6ce
commit
23e83dfd1b
1 file changed
+4
-2
@@ -160,8 +160,10 @@ about players death and applying external effects (like mob anger etc).
|
||||
|
||||
### `__on_player_respawns(player)`
|
||||
Triggered when a player respawns. This includes spawning after death, or landing in the overworld after leaving the end.
|
||||
When the event is handled, a player is still in its previous location and dimension - will be repositioned right after.
|
||||
|
||||
When the event is handled, a player is still in its previous location and dimension - will be repositioned right after. In
|
||||
case player died, its previous inventory as already been scattered, and its current inventory will not be copied to the respawned
|
||||
entity, so any manipulation to player data is
|
||||
best to be scheduled at the end of the tick, but you can still use its current reference to query its status as of the respawn event.
|
||||
|
||||
### `__on_player_changes_dimension(player, from_pos, from_dimension, to_pos, to_dimension)`
|
||||
Called when a player moves from one dimension to another. Event is handled still when the player is in its previous
|
||||
|
||||
Reference in new issue
Block a user