-
Notifications
You must be signed in to change notification settings - Fork 10
ComputerCraft integration
The peripheral of Create Big Cannons' cannon mount.
The peripheral type is cbc_cannon_mount
.
assemble() -> boolean
Assemble blocks into contraption.
Returns whether the cannon was successfully assembled.
disassemble() -> boolean
Disassemble contraption into blocks.
Returns whether the cannon was successfully disassembled.
fire()
Make the cannon contraption fire.
isRunning() -> boolean
Returns whether the cannon is running(assembled).
getPitch() -> number
Returns the cannon's pitch angle.
getYaw() -> number
Returns the cannon's yaw angle.
getMaxDepress() -> number
Returns the cannon's max depression angle.
Tips: If you customize the depression angle with datapack (e.g. with cbcmf installed), it cannot return the actual maximum depression angle. Maybe it will be fixed in a future version.
getMaxElevate() -> number
Returns the cannon's max elevation angle.
Tips: If you customize the elevation angle with datapack (e.g. with cbcmf installed), it cannot return the actual maximum elevation angle. Maybe it will be fixed in a future version.
Most of them are the same as the CannonMountPeripheral, but there are two more cheating functions.
You can enable this in config file.
setPitch(number angle)
Set the cannon's pitch angle.
setYaw(number angle)
Set the cannon's yaw angle.
The peripheral of ValkyrienSkies Clockwork's flap bearing.
The peripheral type is clockwork_flap_bearing
.
assemble() -> boolean
Assemble blocks into contraption.
Returns whether the flap bearing was successfully assembled.
disassemble() -> boolean
Disassemble contraption into blocks.
Returns whether the flap bearing was successfully disassembled.
Most of them are the same as the FlapBearingPeripheral, but there is a cheating functions.
You can enable this in config file.
setAngle(number angle)
Set the flap bearing's angle.
The peripheral of ValkyrienSkies Eureka's ship helm.
The peripheral type is eureka_ship_helm
.
assemble()
Assemble the blocks into a ship.
disassemble()
Disassemble the ship into blocks.
align()
Align the ship.
move(number x, number y, number z)
Use the ship helm to move the ship.
local ship_helm = peripheral.find("eureka_ship_helm")
ship_helm.move(0, 0, 1) -- forward
ship_helm.move(0, 0, -1) -- back
ship_helm.move(1, 0, 0) -- turn left
ship_helm.move(-1, 0, 0) -- turn right
ship_helm.move(0, 1, 0) -- up
ship_helm.move(0, -1, 0) -- down
ship_helm.move(0, 0, 0) -- stop
ship_helm.move(1, -1, 1) -- You can use all of them.(like this is turn left, down, and forward)
getBalloonAmount() -> number
Returns the number of (eureka) balloons on the ship.
getAnchorAmount() -> number
Returns the number of (eureka) anchors on the ship.
getActiveAnchorAmount() -> number
Returns the number of active (eureka) anchors on the ship.
areAnchorsActive() -> boolean
Returns getActiveAnchorAmount() > 0
.
getShipHelmAmount() -> number
Returns the number of (eureka) ship helms on the ship.