InventoryApi
Services.get("InventoryApi")
Overview
API Reference
createItem()
createItem()const item = inventoryApi.createItem({
id: "minecraft:diamond",
name: "§b§lExample Item",
lore: [
"§7This is an example",
"§7Created via InventoryApi"
],
amount: 1
})Key
Type
Description
constructInventory()
constructInventory()InventoryUI API
setSlot()
setSlot()setTitle()
setTitle()copy()
copy()show()
show()hide()
hide()destroy()
destroy()onLeftClick()
onLeftClick()onRightClick()
onRightClick()onItemPlaced()
onItemPlaced()onClosed()
onClosed()Example:
Last updated
Was this helpful?