Interface DropFunction

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.

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