CC:CBC
CC:CBC is a mc mod that adds compatibility between the ComputerCraft and Create Big Cannons!
介绍
CC:CBC
A CC: Tweaked peripheral that adds computer control for cannons from Create Big Cannons.
Features
- Computer control mode (
setComputerControl) that disables default shaft-driven rotation. - Two-axis aiming (
yaw/pitch) with behavior tied to CBC kinetic speed. - Assembly/disassembly control (
assemble) and firing control (fire). - Cannon telemetry via
getInfo().
Lua API
Peripheral type: cannon_mount
| Method | Parameters | Returns | Description |
|—|—|—|—|
| setComputerControl | enabled: boolean | nil | Enables/disables computer control mode. |
| isComputerControl | – | boolean | Current computer control mode status. |
| setTargetAngles | yaw: number, pitch: number | nil | Sets target aiming angles. |
| setTargetYaw | yaw: number | nil | Sets horizontal angle only. |
| setTargetPitch | pitch: number | nil | Sets vertical angle only. |
| getInfo | – | table | Returns cannon telemetry/state. |
| assemble | enabled: boolean | boolean | true = assemble, false = disassemble. |
| 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. |
| assembled | boolean | Whether the cannon is assembled on the mount. |
| yaw | number | Current horizontal angle (0..360). |
| pitch | number | Current vertical angle. |
| targetYaw | number | Target horizontal angle (0..360). |
| targetPitch | number | Target vertical angle. |
| yawShaftSpeed | number | Yaw interface shaft speed. |
| pitchShaftSpeed | number | Pitch interface shaft speed. |
| x, y, z | number | Cannon Mount position in the world. |
常见问题
CC:CBC 支持哪些 Minecraft 版本?
CC:CBC 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
CC:CBC 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
Drakon7009 的其他作品
查看全部 →
NoTimeOut
Server-side NeoForge mod that extends login, keep-alive, and network read timeouts so slow connections have more time to recover.
CBC Military Supplement fix
A small compatibility fix for CBC Military Supplement 2.1.0.
CBC Military Supplement fix
A small compatibility fix for CBC Military Supplement 2.1.0.
评论
登录后评论和评分