createBlockItem

abstract fun createBlockItem(@KeyPattern.Value blockId: String, amount: Int): ItemStack?(source)

Creates a new stack of the item placing the block with blockId. The caller owns the returned stack, so never return a shared one. Some blocks, like fire, can't be placed by an item.

Return

the stack, or null if the block has no item or the ID is unknown.

Parameters

amount

Amount of items, at least 1. If it is greater than the maximum stack size, Mimic lowers the amount of the returned stack.