Chunked Block Drop Collector
A block drop collector that merges the dropped items if they're in the same sub-cuboid.
Parameters
box
The volume the blocks will be broken inside. Calling collect with a position outside it will throw an error
max Chunk Size
The maximum side length of a sub-cuboid
Functions
Link copied to clipboard
open override fun collect(pos: BlockPos, state: BlockState, tool: ItemStack, droppedStacks: List<ItemStack>)
open override fun collect(world: ServerWorld, pos: BlockPos, state: BlockState, blockEntity: BlockEntity?, destroyer: Entity, tool: ItemStack)
Stores the dropped items of a broken block.
Link copied to clipboard
Drops all collected items into the world.