Interface ClickFunction

Function used to define how the block will behave when the player clicks on it.

  • Parameters

    • coords: ItemUseCoordinates

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

    • item: ItemInstance

      item that was in the player's hand when he touched the block

    • block: Tile

      block that was touched

    • player: number

      unique ID of the player entity

    Returns void

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