getItemCount

Bridge.getItemCount()

Arguments

  • itemName (string): The name of the item to check.

  • metadata (table, optional): Additional metadata to filter the item count.

Returns

  • count (number): The number of items matching the name (and metadata, if provided).

Example Usage

local itemCount = Bridge.getItemCount('water')

print("Item Count: " .. itemCount)

Return Structure

If items are found:

3

If no items are found:

0

Last updated