Buy Me a Coffee at ko-fi.com

Raycasts a Block in the world.
If successful, returns the BlockState hit, the exact world position hit as a Vector3, and the side of the block that was hit.
When unsuccessful, returns nil.
blockCastType and fluidCastType determine how the raycast handles block shapes and fluids.
Will default to "COLLIDER" and "NONE" when nil

overload 1:
RaycastAPI.block(start: Vector3, end: Vector3, blockCastType: String, fluidCastType: String): Varargs
typings.2002444080typings.2002444080typings.-1808118735typings.-1808118735typings.1901216868
Method PropertyFluent DescriptionRepresentation
start accepts
end accepts
blockCastType accepts
fluidCastType accepts
Return Value
overload 2:
RaycastAPI.block(startX: Number, startY: Number, startZ: Number, end: Vector3, blockCastType: String, fluidCastType: String): Varargs
typings.-1950496919typings.-1950496919typings.-1950496919typings.2002444080typings.-1808118735typings.-1808118735typings.1901216868
Method PropertyFluent DescriptionRepresentation
startX accepts
startY accepts
startZ accepts
end accepts
blockCastType accepts
fluidCastType accepts
Return Value
overload 3:
RaycastAPI.block(start: Vector3, endX: Number, endY: Number, endZ: Number, blockCastType: String, fluidCastType: String): Varargs
typings.2002444080typings.-1950496919typings.-1950496919typings.-1950496919typings.-1808118735typings.-1808118735typings.1901216868
Method PropertyFluent DescriptionRepresentation
start accepts
endX accepts
endY accepts
endZ accepts
blockCastType accepts
fluidCastType accepts
Return Value
overload 4:
RaycastAPI.block(startX: Number, startY: Number, startZ: Number, endX: Number, endY: Number, endZ: Number, blockCastType: String, fluidCastType: String): Varargs
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-1808118735typings.-1808118735typings.1901216868
Method PropertyFluent DescriptionRepresentation
startX accepts
startY accepts
startZ accepts
endX accepts
endY accepts
endZ accepts
blockCastType accepts
fluidCastType accepts
Return Value