InvRef contains_item - Uberi/MineTest-API GitHub Wiki

InvRef:contains_item

Description

Returns true if the itemstack is found within the inventory.

Syntax

[boolean](../type/boolean.html) contains_item([string](../type/string.html) listname, [ItemStack](../type/ItemStack.html) stack)

Examples

local found = inventory:contains_item("main", ItemsStack("default:mese"))
⚠️ **GitHub.com Fallback** ⚠️