Terrain Raycast Detector v1.0
Overview
When any input changes, the detector will detect the blocks in the direction it faces, then return the distance and other information. You can also specify which block to detect. TheDetection Distance
must be set to a positive integer.
Ports Definition
Top Output
Bit Width Used | Function | Description |
---|---|---|
32 | Block Value | The value of the nearest block detected |
Right Input
Bit Width Used | Function | Description |
---|---|---|
12 | Detection Distance | Set how many blocks should the detector detect. When this is 0, the detector will not do anything. |
1 | Whether Check Block Data | See |
1 | Whether Ignore Fluid | If this is 1, the detector will ignore fluid blocks like water and magma. |
18 | Empty | No effect. |
Bottom Output
Bit Width Used | Function | Description |
---|---|---|
32 | Result Distance | The distance of nearest block detected, in blocks. |
Left Input
Bit Width Used | Function | Description |
---|---|---|
10 | Specify Block Content | If this is greater than 0, the detector will only detect the block with the same block content. |
4 | Empty | No effect. |
18 | Specify Block Data | If |
Back Output
Bit Width Used | Function | Description |
---|---|---|
32 | Continuous Count | If the block, which meets the conditions, is detected, the detector will continue detecting until a block not the first one. |