> For the complete documentation index, see [llms.txt](https://ersha.gitbook.io/dungeonplus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ersha.gitbook.io/dungeonplus/di-lao/di-lao-jiao-hu-jiao-ben-dungeoninteract/block_interact.md).

# Block\_Interact

## 脚本参数

标注 **\*** 为必填参数

| 参数              | 说明                               |
| --------------- | -------------------------------- |
| **location \*** | 方块位置(X,Y,Z)                      |
| **action**      | 动作 LEFT\[左键]/RIGHT\[右键] 默认 RIGHT |
| **hand**        | 手持物品名,设 none 为无 (默认无)            |
| **level**       | 玩家等级要求 (默认 0)                    |
| **permission**  | 玩家权限要求 none 为无 (默认无)             |

> 触发者 **交互的玩家，**&#x5B58;在触发者的交互脚本可使用 **@self** 类型的地牢脚本

## 提示

推荐在插件自带的 **在线编辑功能模式** 下用快捷方式设置交互脚本，这样子会方便很多出错的情况也会降低，当然你要是不嫌麻烦的话也可以在 **地牢交互脚本文件夹(dungeon/interact)** 内手动新建 **YML** 写交互脚本


---

# 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://ersha.gitbook.io/dungeonplus/di-lao/di-lao-jiao-hu-jiao-ben-dungeoninteract/block_interact.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.
