Blocks (Expression) — Skript

Addon: Skript · Category: Expression · Since: 1.0, 2.5.1 (within/cuboid/chunk)

Syntax

[(all [[of] the]|the)] blocks %direction% [%points%] [in [(world|instance)] %instance%]

Description

Blocks relative to other blocks or between other blocks. Can be used to get blocks relative to other blocks or for looping. Blocks from/to and between will return a straight line whereas blocks within will return a cuboid.

Examples

loop blocks above the player:
loop blocks between the block below the player and {_block}:
set the blocks below the player, the victim and the {_block} to air
set all blocks within {loc1} and {loc2} to stone
set all blocks within chunk at player to air

View source