save To World
abstract fun saveToWorld(worldName: String, author: String, name: String): ProgressToken<Void>
Content copied to clipboard
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
world Name
World where the structure file is stored.
author
Author of the structure.
name
Name of the stored structure.