Skip to content

ItemStack

Marcus Abshire edited this page Jul 2, 2024 · 2 revisions

Constructor

ItemStack.new(Material)

See Material for accessing materials.

Fields

Name Type Notes
type userdata<Material>
amount int
isEmpty bool
meta userdata<ItemMeta>

Functions

Name Returns Parameters Notes
clone
getEnchant int | nil Enchant
addEnchant nil Enchant, int The passed int should be one higher than in Java
removeEnchant nil Enchant

Clone this wiki locally