CC:CBC Compact Mount
作者:rebot | 分类:模组
Minecraft 版本: 1.21.1
平台: neoforge
标签: technology utility
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. | ||
isComputerControl | - | boolean |
Current computer control mode status. | ||
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. | |
pitch | number |
Current vertical angle. | |
targetPitch | number |
Target vertical angle. | |
pitchShaftSpeed | number |
Pitch interface shaft speed. | |
x, y, z | number | Cannon Mount position in the world. |
请登录后举报
暂无评论,抢个沙发吧~