createItemStack

fun createItemStack(): ItemStack

Creates a single stack of this item, fully finalized (meta, identity, behaviours).

Every call builds a fresh stack from scratch, so any per-stack state (durability charges, custom persistent data written after creation) starts at its default. To mutate an existing item — e.g. spend a durability charge — operate on the stack already in the inventory, not on a new one from here.


fun createItemStack(amount: Int): ItemStack

Creates a stack of amount copies of this item.


fun createItemStack(additionalArgs: List<String>): ItemStack
fun createItemStack(amount: Int, additionalArgs: List<String>): ItemStack