NBT - Compound (Type) — SkBee

Addon: SkBee · Category: Type · Since: 1.6.0 · Usage: {id:"minecraft:netherite_axe",tag:{damage:0,enchantments:[{id:"minecraft:unbreaking",lvl:2s}]},count:1b}

Syntax

nbtcompound

Description

Represents the NBT compound of an entity/block/item/file/string. NBT compounds can be merged by adding together, see examples.

Examples

set {_a} to nbt compound of player
set {_nbt} to nbt compound of last spawned entity
set {_n} to nbt compound from "{Invisible:1b}"
add {_n} to nbt of target entity

View source