> 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** 写交互脚本
