Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Dimensions

Namespace used to create and manipulate custom dimensions

Index

Type Aliases

MaterialBlockData: [number, number?, number?] | { data?: number; id: number; width?: number } | number
NoiseConversionParams: string | Vec2Data[]
NoiseOctaveStringType: "perlin" | "gray" | "chess" | "sine_x" | "sine_y" | "sine_z" | "sine_xy" | "sine_yz" | "sine_xz" | "sine_xyz"
Vec2Data: [number, number] | { x: number; y: number } | number
Vec3Data: [number, number, number] | { x: number; y: number; z: number } | number

Functions

  • getAllRegisteredCustomBiomes(): {}
  • isLimboId(id: number): boolean
  • Parameters

    • id: number

      dimension id

    Returns boolean

    true, if dimension is a limbo dimension. Limbo dimension is created by Horizon automatically if you try to teleport the player to non-existing dimension

  • newGenerator(description: { base?: string | number; biome?: number; buildVanillaSurfaces?: boolean; generateVanillaStructures?: boolean; layers?: TerrainLayerParams[]; modWorldgenDimension?: string | number; type?: string }): CustomGenerator
  • Function used to simplify the creation of terrain generator by passing a json-like structure as a single generator parameter. For detailed explanations see {@See Custom Dimensions} page

    Parameters

    • description: { base?: string | number; biome?: number; buildVanillaSurfaces?: boolean; generateVanillaStructures?: boolean; layers?: TerrainLayerParams[]; modWorldgenDimension?: string | number; type?: string }

      object containing all the required generator information

    Returns CustomGenerator

  • overrideGeneratorForVanillaDimension(id: number, generator: CustomGenerator): void
  • transfer(entity: number, dimensionId: number): void
  • Transfers specified entity to the dimension with specified id

    Parameters

    • entity: number

      numeric id of the

    • dimensionId: number

      numeric id of the dimension to transfer the entity to

    Returns void

Generated using TypeDoc