saveToWorld

abstract fun saveToWorld(worldName: String, author: String, name: String): ProgressToken<Void>

Saves the blocks and entities from the world into into a structure.nbt file located in the world folder, author folder. Overrides existing files. This allows to use the structure in Vanilla Structure Blocks.

This call does not block and finishes in the future. Use ProgressToken ()} for cancellation or callbacks.

Return

Instance of ProgressToken.

Parameters

worldName

World where the structure file is stored.

author

Author of the structure.

name

Name of the stored structure.