InvRef room_for_item - Uberi/MineTest-API GitHub Wiki

InvRef:room_for_item

Description

returns true if the stack of items can be fully added to the list

Syntax

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

Examples

local has_room = inventory:room_for_item("main", ItemStack("default:mese 99"))
⚠️ **GitHub.com Fallback** ⚠️