Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DropFunction

Callable

  • Function used to determine block drop

    Parameters

    • blockCoords: ItemUseCoordinates

      coordinates where the block is destroyed and side from where it is destroyed

    • blockID: number

      numeric tile id

    • blockData: number

      block data value

    • diggingLevel: number

      level of the tool the block was dug with

    • enchant: EnchantData

      enchant data of the tool held in player's hand

    • item: ItemInstance

      item stack held in player's hand

    • region: BlockSource

      BlockSource object

    Returns ItemInstanceArray[]

    block drop, the array of arrays, each containing three or four values: id, count, data and extra respectively

Generated using TypeDoc