Raycasting

Raycasting tricks take either an entity or a position and a direction, and will give what the entity is looking at, or what the vectors are pointing to.

When using vectors, the first vector is interpreted as the position to start from, while the second is seen as a unit vector representing the look direction.

Raycasts which target blocks may optionally be made to hit fluids if their last argument is true.

If a raycast misses and does not hit anything of relevance within 64 blocks, void will be given.

Pinpoint Ingress



Vector, Vector, Boolean? -> Vector | Void

Entity, Boolean? -> Vector | Void

Returns the position of the block that is hit.

Mark Ingress



Vector, Vector, Boolean? -> Entity | Void

Entity, Boolean? -> Entity | Void

Returns the entity that is hit.

Bearing Ingress



Vector, Vector, Boolean? -> Vector | Void

Entity, Boolean? -> Vector | Void

Returns a unit vector representing the side of the block that is hit.