Block Data (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.5, 2.5.2 (set), 2.10 (block displays)

Syntax

[the] block[ ]data of %blocks/displays/entities%

Description

Get the <a href='#blockdata'>block data</a> associated with a block. This data can also be used to set blocks.

Examples

set {_data} to block data of target block
set block at player to {_data}
set block data of target block to oak_stairs[facing=south;waterlogged=true]

View source