Lowest/Highest Solid Block (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.2-dev34, 2.9.0 (lowest solid block, 'non-air' option removed, additional syntax option)
Syntax
[the] (highest|lowest) [solid] block (at|of) %locations%Description
An expression to obtain the lowest or highest solid (impassable) block at a location. Note that the y-coordinate of the location is not taken into account for this expression.
Examples
teleport the player to the block above the highest block at the player
set the highest solid block at the player's location to the lowest solid block at the player's location