Load block data||doc135404

September 20, 2022

Format

 Map:loadBlocks(min, max, data) 
  • The class to which the function belongs:Map

Description

Specify an area in the map consisting of the minimum and maximum coordinates, and load thesaveBlocksThe content of the data returned.


Precautions

  • The size of the area composed of min and max must be the same as the area used for saveBlocks, otherwise there will be unintended consequences.
  • The min coordinate must be less than the max coordinate, otherwise the block data cannot be loaded.
  • The values for each axis of the min and max coordinates must be integers, otherwise there will be unintended consequences.

Parameters

Variable name type Description
min Vector3 The smallest point of the specified area within the map
max Vector3 The maximum point of the specified area within the map
data string block data