GenerateTerrainGetBlockTypeFunction: (
    pos: Vector3,
    localMaxHeight: number,
    baseHeight: number,
    biome: TerrainGeneratorBiome,
    noise: ReturnType<typeof Globals.modules.utils.getNoise>,
    heightNoiseValue: number,
    offset: Vector3,
    scale: Vector3,
) => string

A function used to determine the block type to generate for the generateTerrainV2 function.

Type declaration

    • (
          pos: Vector3,
          localMaxHeight: number,
          baseHeight: number,
          biome: TerrainGeneratorBiome,
          noise: ReturnType<typeof Globals.modules.utils.getNoise>,
          heightNoiseValue: number,
          offset: Vector3,
          scale: Vector3,
      ): string
    • Parameters

      • pos: Vector3

        The coordinates of the block that the block type is being retrieved for.

      • localMaxHeight: number

        The maximum height of the terrain and the block's x and z coordinates.

      • baseHeight: number

        The base height of the terrain.

      • biome: TerrainGeneratorBiome

        The biome the block is being generated in.

      • noise: ReturnType<typeof Globals.modules.utils.getNoise>

        The noise functions.

      • heightNoiseValue: number

        The noise value used to determine the localMaxHeight value.

      • offset: Vector3
      • scale: Vector3

      Returns string

      The block type to generate.