• Gets the top solid block at the specified location in the given dimension.

    Parameters

    • location: Vector3

      The position to check for the top solid block.

    • dimension: Dimension

      The dimension in which to search for the block.

    • OptionalonlySolid: boolean = false

      Whether to only consider solid blocks.

    Returns undefined | Block

    The top solid block at the specified location, or undefined if none is found.