> For the complete documentation index, see [llms.txt](https://temp-17.gitbook.io/trmenu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://temp-17.gitbook.io/trmenu/script/expressions/hasitem.md).

# hasItem

Check if the player has the specified item

## Example

```
hasItem.material:DIAMOND,amount:64
```

{% content-ref url="/pages/-MFVxQ0nSz9SIUcU2PlI" %}
[Item Identifiers](/trmenu/functions/item-identifiers.md)
{% endcontent-ref %}
