# Durability

If you want to set a custom durability for a specific tool you can!\
For example:

```yaml
custom_sword:
  enabled: true
  permission: custom_sword
  model_id: 1
  vanilla_type: DIAMOND_SWORD
  name: '&fTest'
  specific_properties:
    attack_damage: 8
    attack_speed: 1.2
    max_custom_durability: 200
    custom_durability: 32
    disappear_when_broken: false
    unbreakable: false #it's the Minecraft vanilla attribute
```

As you can see there are two special properties **max\_custom\_durability, custom\_durability** and **disappear\_when\_broken**.

{% hint style="warning" %}
You don't have to set these properties, if you don't want the plugin to handle custom durability just disable **custom\_durability** in config.yml
{% endhint %}

{% hint style="info" %}
**max\_custom\_durability**: max durability\
**disappear\_when\_broken**: If the item must disappear when durability reaches 0\
**custom\_durability**: starting amount of durability
{% endhint %}

![As you can see there is an indicator of the custom durability](/files/-LglvdMh0498h9QVrP-j)

![It's precise as vanilla](/files/-LglvrY4ZxcntU_zFZuS)

{% hint style="danger" %}
**Be sure not to confuse with the real vanilla durability if you have&#x20;*****F3+H*****&#x20;enabled**
{% endhint %}

![](/files/-LglvxiW1o_7f2Elz2ES)

{% hint style="success" %}
Durability can be applied to:

* Swords
* Guns
* Armors
* Fishing rods
* Tools
* Bows
* Shields
  {% endhint %}


---

# 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://lonedev.gitbook.io/itemsadder/items-properties/durability.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.
