Skip to content

Commit df3d69e

Browse files
committed
docs: expand bot plugin section with user/creator guides and parameter reference
1 parent 6e56ecb commit df3d69e

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

3. Features.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,39 @@
116116
### pb
117117
增量备份插件。可备份、定时自动备份、回档等。玩家使用时建议养成写注释的良好习惯。
118118
### bot
119-
假人管理插件
120-
使用!!bot list 即可查询记录在列表中的假人,并可一键执行假人命令
119+
假人管理插件。[GitHub 仓库](https://github.com/AnzhiZhang/MCDReforgedPlugins/tree/master/src/bot)
120+
121+
#### 使用者
122+
使用 `!!bot list` 即可查看假人列表,列表中有可点击的按钮,可直接上线、下线假人或执行假人动作。
123+
124+
#### 创建者
125+
##### 保存假人
126+
- `!!bot save <name>` — 保存当前在线的假人(继承假人当前位置与朝向)
127+
- `!!bot save <name> <position> <facing> <dimension>` — 手动指定位置保存假人
128+
- `!!bot del <name>` — 删除已保存的假人(删除后会备份到 `botBin.json`,误删可手动恢复)
129+
130+
##### 配置动作
131+
- `!!bot config <name> actions append <action>` — 添加动作
132+
- `!!bot config <name> actions delete <index>` — 删除动作
133+
- `!!bot config <name> actions edit <index> <action>` — 编辑动作
134+
- `!!bot config <name> actions clear` — 清空所有动作
135+
136+
`<action>` 的格式与 `/player bot_name <action>` 的动作部分一致,例如:
137+
- `use continuous` — 持续右键
138+
- `attack continuous` — 持续左键
139+
- `jump once` — 跳一次
140+
141+
##### 参数说明
142+
143+
| 参数 | 说明 | 示例 |
144+
|------|------|------|
145+
| `<name>` | 假人名称(含 `bot_` 前缀) | `bot_ms` |
146+
| `<position>` | 坐标(x y z,空格分隔) | `100 64 -200` |
147+
| `<facing>` | 朝向(水平角度 垂直角度) | `0 90` |
148+
| `<dimension>` | 维度 | `minecraft:overworld`(主世界)、`minecraft:the_nether`(地狱)、`minecraft:the_end`(末地) |
149+
| `<action>` |`/player` 命令的动作格式一致 | `use continuous``attack continuous` |
150+
| `<index>` | 动作序号(从 0 开始) | `0` |
151+
121152
### spec
122153
玩家可使用!!spec指令(可简写为!c)切换为旁观模式。再次执行该命令后,玩家恢复生存模式并回到原本所在坐标。
123154
### rms

0 commit comments

Comments
 (0)