Options for Dimension.getBlockAbove and Dimension.getBlockBelow.
Interface in @minecraft/server
Options for Dimension.getBlockAbove and Dimension.getBlockBelow.
import type { BlockRaycastOptions } from '@minecraft/server';Properties
Section titled “Properties”includeLiquidBlocks
Section titled “includeLiquidBlocks”optional
includeLiquidBlocks?: boolean;Whether water and lava count; default false.
includePassableBlocks
Section titled “includePassableBlocks”optional
includePassableBlocks?: boolean;Accepted; every block but air counts in Basalt.
maxDistance
Section titled “maxDistance”optional
maxDistance?: number;How many blocks to look, default the whole height.
Used by
Section titled “Used by”Entity.getBlockFromViewDirection, Dimension.getBlockAbove, Dimension.getBlockBelow, Dimension.getBlockFromRay