Interface PlaceFunction

Function used to determine when block is placed in the world.

  • 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 he touched the block

    • block: Tile

      block that was touched

    • player: number

      Player unique ID

    • region: BlockSource

      BlockSource object

    Returns void | Vector

    Coordinates where to actually place the block, or void for default placement.

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