Skip to content

helix / toSnbt

Function: toSnbt()

toSnbt(value, version): string

Defined in: core/values/nbt.ts:65

Serialize a JS value to SNBT, rendering any embedded CommandValue.

Parameters

value

NbtInput

version

VersionProfile

Returns

string

Released under the MIT License · Credits