Blocks (Expression) — Skript

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

Syntax

[(all [[of] the]|the)] blocks %direction% [%locations%]

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 the targeted block:
set the blocks below the player, the victim and the targeted block to air
set all blocks within {loc1} and {loc2} to stone
set all blocks within chunk at player to air

View source