"Sputnik" help  
Sputnik Help
NbtToString(<nbt>)

Description

Converts the provided NBT (Named Binary Tag) object to a string representation of its value. The NbtToString function allows you to obtain a string representation of the value stored in an NBT object.

Parameters

<nbt> The NBT object to be converted to a string.

Return Value

Success: Returns a string representation of the value stored in the NBT object.
Failure: Returns an empty string if the provided nbt parameter is not a valid NBT object.

Remarks

The NbtToString function is used to obtain a string representation of the value stored in an NBT object. The function converts the value to a string and returns it. The resulting string can be used for display or further processing in your script.

Related

Example

Example of usage:

my $nbt = Nbt("Hello World");
my $stringValue = NbtToString($nbt);
say $stringValue;

// PRINTS
// Hello World

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org