From 23e83dfd1b87ad7cdc0f22718f1c45e48790ef3a Mon Sep 17 00:00:00 2001 From: gnembon Date: Thu, 24 Dec 2020 06:55:12 -0400 Subject: [PATCH] clarify, or rather convolute the docs --- docs/scarpet/api/Events.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/scarpet/api/Events.md b/docs/scarpet/api/Events.md index ac3da637..e3888543 100644 --- a/docs/scarpet/api/Events.md +++ b/docs/scarpet/api/Events.md @@ -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