Skip to main content

ChangedItem

Gets called when the player has changed their held item.

Start a script section

!-- OnEvent ChangedItem
-- require @evPlayer *evOldItem *evNewItem

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerChangedItemEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who changed current item.
*evOldItemreference to Item objectGets the old item which player changed.
*evNewItemreference to Item objectGets the new item which player changed to.