Interface LegacyItemUseFunction

Function used in "ItemUse" and "ItemUseLocalServer" callbacks.

  • 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: Tile

      block that was touched

    • isExternal: boolean

      received from external player on server

    • playerUid: number

      player entity UID

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.