Inventory:findEmptySlot

From Nutscript Developer Wiki
Jump to navigation Jump to search
   Inventory:findEmptySlot(w, h, onlyMain)

This function returns the free of certain size. If inventory is fit with the size, it will return the appropriate location of the inventory.

Arguments[edit]

  • Integer width
  • Integer height
  • Boolean OnlySearchMain

Return Values[edit]

  • Integer slotX
  • Integer slotY

Examples[edit]

none