Last updated 6 months ago
itemName (string): The name of the item to check.
metadata (table, optional): Additional metadata to filter the item count.
count (number): The number of items matching the name (and metadata, if provided).
If items are found:
If no items are found:
Bridge.getItemCount()
local itemCount = Bridge.getItemCount('water') print("Item Count: " .. itemCount)
3
0