Skip to main content

Callback.ItemUseFunction

Function used in "ItemUseServer" and "ItemUseLocal" callbacks.

Callable


  • Parameters

    • coords: ItemUseCoordinates

      set of all coordinate values that can be useful to write custom use logics

    • 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)

    • playerUid: number

      player entity UID

    Returns void