File Details
extended pirsensor
- A
- Feb 6, 2012
- 5.60 KB
- 638
- CB 1.0.1-R1
File Name
pirsensordev.jar
Supported Versions
- CB 1.0.1-R1
Extends the PIR sensor class to detect anything that derives from the "Entity" class. Check the API documentation for a list.
Use in the same manner as the Arrow Detector and other circuits by creating a sign with the text "devsensor" on the first line. Anywhere else on the sign, you may specify the following optional arguments:
- Radius - an integer specifying the detection radius
- Entities - the exact name of an entity class that will be checked for
- 'cube' - the sensor will detect entities in a cubic radius rather than a spherical radius
If no optional text is specified, the sensor defaults to checking LivingEntities in a 10 block spherical radius. Some valid examples:
devsensor
cube 50
Creeper
devsensor
3 Player
devsensor
Cow Pig 20
cube NPC

