Skip to main content
Triggered when an item is transferred between inventories (including intra-inventory moves, e.g. dragging within the same inventory). Register with registerHook using the event name onItemTransferred.

Payload

The admin inventory (omnipack) does not trigger this hook, it has its own onOmnipackTransaction. This way the restrictions you write for your players are never applied to an admin spawning an item.

Examples

See Hooks overview for the registerHook API, available filters (including the transfer-specific inventoryFromTypeFilter/inventoryToTypeFilter/intraInventoryOnly), and return-value behavior.