modifyBlockItem

fun modifyBlockItem(pos: BlockPos, slot: Int, modifier: LootItemFunction)

Applies a LootItemFunction modifier to a block container slot.

Parameters

pos

Block position of the container

slot

Slot index to modify

modifier

LootItemFunction to apply