The first corner of the area to regenerate.
The second corner of the area to regenerate.
The dimension in which the regeneration will take place.
The radius around each block to consider for regeneration.
Optional
options: {Optional parameters to customize the regeneration process.
Optional
airPriority?: numberThe amount to multiply by the weight of air.
Only applies when options.ignoreAir is set to false.
Defaults to 0.5.
Optional
airPriorityCalculationFunction?: (minRelativeLocation: Vector3, min: Vector3, max: Vector3) => numberOptional
airPriorityScalingMode?: Optional
doDistanceBasedPriority?: booleanWhether to prioritize surrounding blocks that are closer to the block being generated.
Defaults to true.
Optional
horizontalDistancePriority?: numberThe amount that will be multiplied by the horizontal distance between the blocks to determine the amount to divide the weight of the block by.
Setting it to 0 will disable horizontal distance priority.
Only aplies when options.doDistanceBasedPriority is set to true.
Defaults to 1.2.
Optional
ignoreAir?: booleanIf true, then surrounding air blocks will not affect the type of blocks generated.
Defaults to true.
Optional
ignoreNotYetGeneratedAir?: booleanIf true, then surrounding air blocks that are in the section that has yet to be generated will not affect the type of blocks generated.
Only applies when options.ignoreAir and options.ignoreNotYetGeneratedBlocks are set to false.
Defaults to true.
Optional
ignoreNotYetGeneratedBlocks?: booleanIf true, then all surrounding blocks that are in the section that has yet to be generated will not affect the type of blocks generated.
Defaults to false.
Optional
minMSBetweenTickWaits?: numberMinimum amount of time in milliseconds to spend regenrating the blocks each tick.
Defaults to 2000.
Optional
onlyReplaceAir?: booleanIf true, then only air blocks will be replaced.
Defaults to true.
Optional
randomization?: numberThe maximum amount by which to multiply or divide weights of the surrounding block permutations to randomize the generated block slightly.
It will add 1 to the randomization amount before calculating, so 0.2 would result in the weights being multiplied or divided by between 1 and 1.2.
Defaults to 0.2.
Optional
verticalDistancePriority?: numberThe amount that will be multiplied by the vertical distance between the blocks to determine the amount to divide the weight of the block by.
Setting it to 0 will disable vertical distance priority.
Only aplies when options.doDistanceBasedPriority is set to true.
Defaults to 1.5.
A promise that resolves with an object containing details about the regeneration process.
Regenerates blocks within a specified area based on surrounding blocks.