Readonly fileReadonly fileWhether the sensor plays audio when activated.
Whether the sensor will only be active while sensing, instead of toggling when being triggered.
The color of this shape.
Whether the sensor will only activate when a block of a certain color is sensed.
The color to filter for if colorMode is true.
The range of the sensor.
The shapeId of this shape. Determines the model and behavior in-game.
Protected updateStatic convertAttempts to convert a Child to a SensorPart. Only returns if the Child's file object is a SensorPart.
The converted SensorPart, or undefined if the Child is not a SensorPart.
The Child to convert.
Static createCreates a sensor.
The created sensor.
The position of the sensor.
The rotation of the sensor.
Optional color: stringThe color of the sensor. Fallbacks to the sensor's default color.
The range of the sensor. Defaults to 10.
Whether the sensor plays audio when activated. Defaults to false.
Whether the sensor will only be active while sensing, instead of toggling when being triggered. Defaults to true.
Whether the sensor will only activate when a block of a certain color is sensed. Defaults to false.
The color to filter for if colorMode is true. Defaults to "FFFFFF".
Generated using TypeDoc
Represents a sensor.