NBT - Set Block with NBT (Effect) — SkBee
Addon: SkBee · Category: Effect · Since: 1.0.0
Syntax
set (nbt[(-| )]block|tile[(-| )]entity) %directions% %locations% to %itemtype/blockdata% with [nbt] %nbtcompound%Description
Set a block at a location to a block with NBT. BlockData is also supported when using MC 1.13+ and Skript 2.5+
Examples
set {_n} to nbt compound from "{CustomName:""{\""text\"":\""&aFurnieFurnace\""}""}"
set nbt-block at player to west facing furnace with nbt {_n}
set nbt-block at player to furnace[facing=west] with nbt {_n}
set {_n} to nbt compound from "{CustomName:""{\""text\"":\""&cHoppieHopper\""}""}"
set nbt-block at event-location to hopper with nbt {_n}
set {_nbt} to nbt compound from "{custom:{BlockOwner:"%uuid of player%"}}"
set nbt-block at player to coal ore with nbt {_n}