# 拾取绑定

## 1. 通过 [Nucleus](/awesome-sponge/plugin/nucleus.md) 添加一条描述到任一物品

![/lore add &7此物品拾取后绑定](/files/-M1JvCBsvQ6qcPMAdbnX)

## 2. 查询当前标签内容

![/ebi q {}](/files/-M1JycOs-h4WMdrwPNWX)

## 3. 通过点击相应标签获得正确路径与对应值，再次查询确认规则 &#x20;

![](/files/-M1Qih69_mYsESE8hSa2)

## 4. 创建规则（no-capture 目的为不依赖于物品 ID，检测所有拥有此 Lore 的物品），因目的为拾取绑定，调整触发器为拾取时触发，一切调整建议在配置文件中直接更改。更新规则修改如下

![/ebi create bound.pick --no-capture {"tag.display.Lore":"\u00a77此物品拾取后绑定"}](/files/-M1K9Ki_alSBZ3EKa_o6)

当拾取物品时，物品 Lore 更新，以便下一个规则的匹配

## 5. 创建规则

![/ebi c bound.bounded --no-capture {"tag.display.Lore":"\u00a77物品已绑定"}](/files/-M1Tgc3NBmDQRYvto1qY)

目的为阻止已绑定物品被丢出/转移至其他库存，所以更新规则设为空

## 6. 至此完成物品的拾取绑定，下面留两个作业

### 1. 不强制匹配 Lore 颜色，只匹配文本

### 2. 装备后绑定

下附此次配置

```
bounded {
    custom-message="{item_pre}已绑定！"
    priority=5
    query {
        "tag.display.Lore"="§7物品已绑定"
    }
    trigger-default-setting=FALSE
    use-trigger {
        "epicbanitem:throw"=true
        "epicbanitem:transfer"=true
    }
    world-default-setting=UNDEFINED
}
pick {
    custom-message="{item_pre}已绑定！"
    priority=5
    query {
        "tag.display.Lore"="§7此物品拾取后绑定"
    }
    trigger-default-setting=FALSE
    update {
        "$set" {
            "tag.display.Lore.$[]"="§7物品已绑定"
        }
    }
    use-trigger {
        "epicbanitem:pickup"=true
    }
    world-default-setting=UNDEFINED
}
```


---

# 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://settingdust.gitbook.io/awesome-sponge/plugin/epicbanitem/shi-li/shi-qu-bang-ding.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.
