> For the complete documentation index, see [llms.txt](https://sosparkly.gitbook.io/chesthunt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sosparkly.gitbook.io/chesthunt/loot-table/prize-options/item-prize.md).

# Item Prize

Valid materials can be given by item id. Args other than material are optional.

Make sure to follow the proper formatting and spacing.

<table><thead><tr><th width="210">Argument</th><th>Description</th></tr></thead><tbody><tr><td>material: ID</td><td>Sets the type of material by block id</td></tr><tr><td>amount: 1</td><td>Sets the amount the player will get</td></tr><tr><td><p>enchants:</p><p>  - name:level</p></td><td>Sets the enchants on the item</td></tr><tr><td>name: " "</td><td>Sets the display name of the item</td></tr><tr><td><p>lore: </p><p>  - "string"</p></td><td>Sets the lore lines in the list order</td></tr><tr><td><p>flags:</p><p>  - type</p></td><td>Sets flags to the item</td></tr><tr><td>unbreakable: true</td><td>Sets the item unbreakable</td></tr></tbody></table>

### Example of use

```yaml
Loot-Table:
  p0:
    item:
      material: DIRT
      amount: 1
      enchants:
        - unbreaking:3
      name: "&dTest Item"
      lore:
        - "Line 1"
        - "Line 2"
      flags:
        - HIDE_ATTRIBUTES
```
