Callback.LegacyItemUseFunction
Callable
Parameters
coords: ItemUseCoordinates
set of all coordinate values that can be useful to write custom use logics, relative and vectorized one
item: ItemInstance
item that was in the player's hand when it touched the block
block: BlockState | Tile
block that was touched (since 3.1.1b127 passes BlockState)
isExternal: boolean
received from external player on server
playerUid: number
player entity UID
Returns void
Function used in "ItemUse" and "ItemUseLocalServer" callbacks.