# Item Flags

## Example of item flags

```yaml
items:
    sword:
        id: DIAMOND_SWORD
        slot: 0
        name: "&7Cool Gamer Sword"
        lore:
        - "&eCute little lore for you =D"
        durability: 1300
        enchantments:
        - "sharpness 5"
        - "unbreaking 3"
        hide_attributes: true
        hide_enchants: true
        itemflags:
        - "unbreakable"
        - "self-drops"
        - "inventory-modify"
        - "death-drops"
```

## Flag List

**unbreakable** <- makes item unable to be broken

**death-drops** <- when this is added to item flags it will disable the ability to be dropped if a player died with the item!

**self-drops** <- when this is added to item flags it will disable the ability to be dropped out of the inventory

**inventory-modify** <- when this is added, it disable player from moving the item in inventory, disable player from putting the item in offhand and disable ability to use as armor

**overwrite** <- when this is added to the item flags, it will allow the item to overwrite if there is a item in the slot where item is supposed to be in!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://uziplexs-docs.gitbook.io/itemjoin-documenattion/basics/item-flags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
