Skip to content

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 Distancemust be set to a positive integer.

Ports Definition

Top Output

Bit Width UsedFunctionDescription
32

Block Value

The value of the nearest block detected

Right Input

Bit Width UsedFunctionDescription
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

SeeSpecify Block Data

1

Whether Ignore Fluid

If this is 1, the detector will ignore fluid blocks like water and magma.
This option has higher priority thanSpecify Block Content

18

Empty

No effect.

Bottom Output

Bit Width UsedFunctionDescription
32

Result Distance

The distance of nearest block detected, in blocks.

Left Input

Bit Width UsedFunctionDescription
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

IfSpecify Block Contentis greater than 0 andWhether Check Block Datais 1, the detector will also check whether the data of block equals to this.

Back Output

Bit Width UsedFunctionDescription
32

Continuous Count

If the block, which meets the conditions, is detected, the detector will continue detecting until a block not the first one.