itemStack
inline fun itemStack(item: ItemLike, amount: Int = 1, builder: ItemStack.() -> Unit): ItemStack(source)
A utility function for building complex item stacks with the given amount.
itemStack(Items.FEATHER, amount = 64) {
setCustomName("Cool Feather")
enchant(Enchantments.FIRE_ASPECT, 1)
}
Content copied to clipboard