staff Mod_after Block Destroyed
abstract fun staffMod_afterBlockDestroyed(world: ServerWorld, pos: BlockPos, state: BlockState, blockEntity: BlockEntity?, dropCollector: IBlockDropCollector, destroyer: LivingEntity, tool: ItemStack)(source)
Called after a staff destroys a block. Staff mod collects the dropped items, increments stats, and applies exhaustion, so these should not be called here.
Parameters
world
The world to destroy blocks in
pos
The position of the broken block
state
The block state broken
block Entity
The block entity of the block if any
drop Collector
The collector of the dropped items. Additional drops can be added here
destroyer
The entity destroying the blocks
tool
The tool destroyer destroys blocks with