Enderman Carrying BlockData (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.11

Syntax

[the] carr(ied|ying) block[[ ]data] of %livingentities%

Description

The block data an enderman is carrying. Custom attributes such as NBT or names do not transfer over. Blocks, blockdatas and items are acceptable objects to change the carrying block.

Examples

broadcast the carrying blockdata of last spawned enderman
set the carried block of last spawned enderman to an oak log
set the carrying block data of {_enderman} to oak stairs[facing=north]
set the carried blockdata of {_enderman} to {_item}
clear the carried blockdata of {_enderman}

View source