(Official) LUA Scripting Documentation
is_item_type
Gets the specified item type.
Spec:
is_item_type()
Returns
bool: Returns true if the given item and type match.
Example
print(is_item_type(item.ironsword, "Weapon"))
This will print true as the Iron Sword has the type of Weapon.
Incomplete
This documentation is incomplete