跳到正文

CC:CBC Compact Mount

作者:fr0nick

Adds a CC: Tweaked peripheral for CBC: Compact Mount.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Do you use CC:CBC? Do you use CBC: Compact Mount? Would you like CC:CBC to work with compact cannon mounts as well? Then this mod is for you!

CC:CBC Compact Mount turns compact cannon mounts into peripherals for computers from CC: Tweaked, recreating the functionality of CC:CBC.

_Note: This mod does not replace CC:CBC, you can use them separately._

Lua API

Peripheral type: “compact_cannon_mount“

| Method | Parameters | Returns | Description |
| :— | :— | :— | :— |
| “setComputerControl` | `enabled: boolean` | `nil` | Enables/disables computer control mode. |<br>
|
`isComputerControl` | - | `boolean` | Current computer control mode status. |<br>
|
`setTargetPitch` | `pitch: number` | `nil` | Sets vertical angle only. |<br>
|
`getInfo` | - | `table` | Returns cannon telemetry/state. |<br>
|
`assemble` | `enabled: boolean` | `boolean` | `true` = assemble, `false` = disassemble. |<br>
|
`fire` | `enabled: boolean` | `boolean` | Controls fire signal (`true“ keeps firing signal active). |

“getInfo()“ fields

| Field | Type | Description |
| :— | :— | :— |
| “computerControl` | `boolean` | Whether computer control mode is active. |<br>
|
`assembled` | `boolean` | Whether the cannon is assembled on the mount. |<br>
|
`pitch` | `number` | Current vertical angle. |<br>
|
`targetPitch` | `number` | Target vertical angle. |<br>
|
`pitchShaftSpeed` | `number` | Pitch interface shaft speed. |<br>
|
`x`, `y`, `z` | `number` | `Cannon Mount“ position in the world. |

常见问题

CC:CBC Compact Mount 支持哪些 Minecraft 版本?

CC:CBC Compact Mount 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

CC:CBC Compact Mount 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

fr0nick 的其他作品

查看全部 →