Skip to content

CC:Tweaked compat

Aycer-8187 edited this page Apr 2, 2026 · 3 revisions

Below are the list of peripherals and peripheral methods for Create:Radars.

Fire Controller

isPowered()

Boolean. Returns if the Fire controller is emitting Redstone or not.

fireOn()

Function. Sets the Fire Controller state to "on" and emits a Redstone signal (strength 15)

fireOff()

Function. Sets the Fire Controller state to "off" and stops emitting a Redstone signal.

setPowered([boolean])

Function. Sets the Fire Controller State to the value of [boolean]

keepFiring()

Function. Causes the Fire Controller to pulse rapidly.


Monitor

(currently bugged, may not show up)

getSelectedTrackId()

String. Returns the current target of the network, as a UUID or ship id, depending on the target.

getTracks()

List(Table). Returns a list of all radar tracks currently detected by the monitor’s controller.

Each entry in the list represents a tracked entity and contains the following fields:

  • position (table): Position vector {x, y, z}
  • velocity (table): Velocity vector {x, y, z}
  • category (string): Track category (e.g. "HOSTILE"). Empty string if unknown
  • id (string): Unique identifier for the track. Empty if unavailable
  • scannedTime (number): Timestamp or tick when the track was last scanned
  • entityType (string): Entity type (e.g. "minecraft:zombie"). Empty if unknown Returns an empty list if no controller is connected or no tracks are available.

getSelectedTrack()

Table. Same output as getTracks, but only returns the target of the network. returns empty if no track is selected.

Auto Pitch Controller & Auto Yaw Controller

setAngle(degrees)

Function. sets the target angle. Note: if the controller is connected to a network, and that network has a selected target, this will NOT stop it from overriding this function. see stopAuto() below.

getAngle()

Number. returns target angle

stopAuto()

Function. Stops Networks from interacting with the controller. WARNING: this can NOT be undone. To restore normal network behavior, you must re-link the controller.

This function does not exist for the yaw controller in in 0.4.2 or below.


Plane Radar & Radar Bearing

getTracks()

List(Table). Returns a list of all radar tracks currently detected by the radar.

Each entry in the list represents a tracked entity and contains the following fields:

  • position (table): Position vector {x, y, z}
  • velocity (table): Velocity vector {x, y, z}
  • category (string): Track category (e.g. "HOSTILE"). Empty string if unknown
  • id (string): Unique identifier for the track. Empty if unavailable
  • scannedTime (number): Timestamp or tick when the track was last scanned
  • entityType (string): Entity type (e.g. "minecraft:zombie"). Empty if unknown Returns an empty list if no Network Controller is connected or no tracks are available.

getPosition()

Table. Returns world position of the radar (x,y,z). Will return 0,0,0 if something goes wrong.

getRange()

Number. Returns Scan range (in blocks)

Radar bearing exclusive functions

The following do not exist in the plane radar. (cuz it wouldn't make sense)

getRotation()

Number. Returns angle of the bearing (degrees)

getRotationSpeed()

Number. Returns the spin speed of the radar

getDishCount()

Number. Returns the number of dishes (or plates) attached to the radar.