-
Notifications
You must be signed in to change notification settings - Fork 77
Trinkets Events
Emily Rose Alexandra edited this page May 31, 2021
·
1 revision
Registered TrinketsDropCallback
s are called called when a living entity dies and Trinkets is determining what to do with their trinkets. A DropRule
is passed, which is obtained from the item's Trinket.getDropRule
if applicable, as well as context about the stack, slot, and entity. The DropRule
can be chosen to be mutated to any of KEEP
, DROP
, DESTROY
, or DEFAULT
. If left on or set to DEFAULT
, Trinkets will choose to use the drop rule of a slot. If a slot keeps this on DEFAULT
still, Trinkets will apply vanilla drop logic, checking the keepInventory
gamerule and for Curse of Vanishing to determine what to do.