> For the complete documentation index, see [llms.txt](https://mythicchanger.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mythicchanger.superiormc.cn/drag-gui-change/apply-item-example-stat-scroll-with-usage-times-limit.md).

# 📚Apply Item Example - Stat Scroll with Usage Times Limit

{% hint style="info" %}
You <mark style="color:red;">**NEED**</mark> enable `bypass-real-change-limit` option at `config.yml` to make this example file work.

You <mark style="color:red;">**NEED**</mark> install **NBTAPI** plugin first.
{% endhint %}

```yaml
# Display Item
display-item:
  material: PAPER
  name: '&#da8f87Stat Scroll &7(Armor &a+10%&7)'
  lore:
    - '&8Scroll'
    - ''
    - '&7Drag any &carmor &7onto this item to'
    - '&7make its &bArmor &7value &a+10%&7.'
    - '&7Up to upgrade &420&7 times.'
    - ''
    - '&bSuccess Rate: &a100%'
    - '&a&lRare'
  max-stack: 1
  
# Chance, Up to 100
chance: 100
  
# Rule Configs
real-changes:
  add-name-last: '&6★'
  add-nbt-double:
    - 'MMOITEMS_ARMOR;;{nbt_MMOITEMS_ARMOR;;1}*1.1'
    - 'UPGRADE_TIMES;;{nbt_UPGRADE_TIMES;;0}+1' # Log the useage times
  mi-update-lore: true

# Match Item
match-item:
  items:
    - 'YourMMOItemsArmorID'

# Conditions
conditions:
  1:
    type: placeholder
    rule: '<='
    placeholder: '{nbt_UPGRADE_TIMES;;0}'
    value: 20 # Set the maxmium use times here.
    
# Actions
success-actions:
  1:
    type: message
    message: '&fCool, it looks like magic is showing off, your {name} &fis more powerful now!'
fail-actions:
  1:
    type: message
    message: '&fOh, no! Seems that this time you are now very lucky, the scroll broken, nothing changed!'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://mythicchanger.superiormc.cn/drag-gui-change/apply-item-example-stat-scroll-with-usage-times-limit.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.
