NBT - Empty Compound (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 2.8.0

Syntax

[a[n]] (blank|empty|new) nbt compound

Description

Returns an empty/new NBT compound. Optionally you can define this as a section to modify the created nbt compound directly

Examples

set {_nbt} to blank nbt compound
set tag "points" of {_nbt} to 10

set {_data} to empty nbt compound:
	set string tag "name" of nbt to "Jimmy"
	set int tag "points" of nbt to 99
	set compound tag "extra" of nbt to empty nbt compound

View source