> For the complete documentation index, see [llms.txt](https://furryisland.gitbook.io/commandpanels-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://furryisland.gitbook.io/commandpanels-wiki/panel-blocks.md).

# 面板方块

如何使用方块打开面板

## 如何使用方块打开面板

1. 看向目标方块，同时输入 `/cpb add [面板]`。执行命令时看向的方块就是用于打开面板的方块。
2. 右键方块即可打开面板。如果该方块被破坏，将保存其位置；重新放置方块后，其又可以打开面板。

(i) 使用 `/cpl` 命令以列出所有面板方块，并显示其所在世界及坐标。

## `blocks.yml` 文件

`blocks.yml` 文件存储了面板方块所在的位置。样例如下：

```yaml
world_31_92_-80:
    panel: examplePanel
```

该文件显示了方块的位置，以 `世界名_X_Y_Z` 的形式。插件使用下划线符号来分隔世界名与三条轴的坐标，所以如果世界名含下划线，请使用 `%dash%` 以代替。 要使面板放开执行命令，只需添加命令节，如下所示。如果面板方块包含命令节，则其将不会自动打开面板；此时只需在命令节中添加 `open= 面板名` 以打开面板。

```
world_31_92_-80:
    panel: examplePanel
    commands:
    - open= examplePanel
    - msg= 面板打开!
```
