How to prevent items to be scattered on ground on player's death with API? #197
-
I have plan to make backpack not scatter its content on player's death when the player has specific item in his inventory (not backpack's inventory). Yes, it would be like Totem of Undying, for backpack inventory save thingy only. I have looked into JavaDoc, but I think javadoc don't have sufficient information of what the event is about, what the method does etc. That makes me to not figure out what event should I listen to. Is it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I just added the BackpackDropOnDeathEvent with this build (will be available in the API starting with version |
Beta Was this translation helpful? Give feedback.
I just added the BackpackDropOnDeathEvent with this build (will be available in the API starting with version
2.4.4-SNAPSHOT
). You can just cancel it to prevent the backpack form dropping.