-
Notifications
You must be signed in to change notification settings - Fork 31
Sonic sensor
CoolisTheName007 edited this page Feb 7, 2013
·
2 revisions
This sensor scans it's surroundings for blocks whose center is visible from the center of the closest face of the sensor.Empty or air blocks are ignored. ##Range
- Mk1 range: 5
- Type: cubic, that is, blocks scanned are those in a cube whose sides measure in blocks the range.
##Methods
###getTargets()
Returns a table of [serialized relative coordinates, e.g. '1,2,-3'] to target tables:
- 'type'->
- 'LIQUID' or
- 'SOLID' or
- 'NON_RECOGNISED'
- 'Position'-> table of relative integer coordinates:
- 'x'->x-coordinate
- 'y'->...
- 'z'->...
####Example:
{
'1,0,-1'={
type='LIQUID',
Position={
x=1,
y=0,
z=-1,
},
...
}