← Назад к ресурсам

CC:CBC Compact Mount

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

Modrinth technology utility

Описание

**Do you use [CC:CBC](https://www.curseforge.com/projects/1535866)? Do you use [CBC: Compact Mount](https://modrinth.com/mod/rjti7mm0)? 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](https://modrinth.com/project/gu7yAYhd), 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. |