Worldgen

All the functionality mentioned on this page requires WorldJS to work

Worldgen features are primarily done through placed and configured features. KubeJS TFC adds the ability to make these through builders in the worldgen/configured_feature server registry event

While TFC’s configured feature types are currently implemented, they are undocumented until I have the time and energy to dedicate to documenting them. Until such time, their builders may have breaking changes as they are evaluated when writing their docs

KubeJS TFC also adds a tfc namespace to the modifiers function of WorldJS’s placed feature builder, which is also used by TFC’s configured feature types


Placed Feature Modifiers

KubeJS TFC adds the following placement modifiers under the tfc namespace

  • : Add a tfc:underground modifier
  • : Add a tfc:no_solid_neighbors modifier
  • : Add a tfc:volcano modifier
    • minEasing: float: The minimum easing value
    • maxEasing: float: The maximum easing value
  • : Add a tfc:volcano modifier which only accepts positions at the center
  • : Add a tfc:tuff_cone modifier
    • minEasing: float: The minimum easing value
    • maxEasing: float: The maximum easing value
  • : Add a tfc:tuff_cone modifier which only accepts positions at the center
  • : Add a tfc:tuya modifier
    • minEasing: float: The minimum easing value
    • maxEasing: float: The maximum easing value
  • : Add a tfc:tuya modifier which only accepts positions at the center
  • : Add a tfc:atoll modifier
    • minEasing: float: The minimum easing value
    • maxEasing: float: The maximum easing value
  • : Add a tfc:atoll modifier which only accepts positions at the center
  • : Add a tfc:shallow_water modifier
    • minDepth: int: The minimum depth of water required
    • maxDepth: int: The maximum depth of water permitted
  • : Add a tfc:near_fluid modifier
    • radius: int: The radius to check for fluid
    • fluids?: List<Fluid>: The fluids to consider
      • Optional. Considers all fluids if not set
  • : Add a tfc:intertidal modifier
    • minElevation: int: The minimum valid tide elevation
    • maxElevation: int: The maximum valid tide elevation
  • : Add a tfc:intertidal modifier which is unbounded on the top
    • minElevation: int: The minimum valid tide elevation
  • : Add a tfc:intertidal modifier which is unbounded on the bottom
    • maxElevation: int: The maximum valid tide elevation
  • : Add a tfc:flat_enough modifier
    • flatness: float: The minimum flatness of the checked area
    • radius: int: The horizontal distance to check
    • maxDepth: int: The depth below the initial position to check
  • : Add a tfc:climate modifier
    • climate: ClimatePlacementBuilder: The climate restrictions, which can be made as an object with the fields
      • minTemp?: number: The minimum temperature. Optional, defaults to -Infinity
      • maxTemp?: number: The maximum temperature. Optional, defaults to Infinity
      • minGroundWater?: number: The minimum groundwater. Optional, defaults to -Infinity
      • maxGroundwater?: number: The maximum groundwater. Optional, defaults to Infinity
      • minRainVariance?: number: The minimum rain variance value. Optional, defaults to -1
      • maxRainVariance?: number: The maximum rain variance value. Optional, defaults to 1
      • absoluteRainVariance?: boolean: If the sign of the rain variance should be ignored. Optional, defaults to false
      • fuzzy?: boolean: If values should be evaluated fuzzily. Optional, defaults to false
      • ignoreRivers?: boolean: If values should be evaluated before river influences. Optional, defaults to false
      • minForestDensity?: int: The minimum forest density, in the range [0, ). Optional, defaults to 0
      • maxForestDensity?: int: The maximum forest density, in the range [0, ). Optional, defaults to 4
      • minElevation?: int: The minimum y-level. Optional, defaults to -64
      • maxElevation?: int: The maximum y-level. Optional, defaults to 320
      • forestTypes?: List<ForestType>: The permitted forest types to spawn in. Optional, if not set or empty permits all forest types
  • : Add a tfc:carving_mask modifier
    • minY: VerticalAnchor: The minimum valid vertical anchor
    • maxY: VerticalAnchor: The maximum valid vertical anchor
    • step: GenerationStep$Carving: The carving step volume for which the feature will try to place in. Does not include blocks ‘carved’ out by noise caves
      Reveal/hide list of carving steps
      • air
      • liquid
  • : Add a tfc:carving_mask modifier which is unbounded above
    • minY: VerticalAnchor: The minimum valid vertical anchor
    • step: GenerationStep$Carving: The carving step volume for which the feature will try to place in. Does not include blocks ‘carved’ out by noise caves
      Reveal/hide list of carving steps
      • air
      • liquid
  • : Add a tfc:carving_mask modifier which is unbounded below
    • maxY: VerticalAnchor: The maximum valid vertical anchor
    • step: GenerationStep$Carving: The carving step volume for which the feature will try to place in. Does not include blocks ‘carved’ out by noise caves
      Reveal/hide list of carving steps
      • air
      • liquid
  • : Add a tfc:on_top modifier
    • predicate: BlockPredicate: The block required below for a position to be valid
  • : Adds a tfc:stratovolcano modifier
    • stratovolcano: StratovolcanoBuilder: The stratovolcano properties, which can be made as an object with the fields
      • center?: boolean: If the feature should place exclusively near the center of the volcanic features. Optional, defaults to false
      • useOffsetCenter?: boolean: If the feature should place exclusively near the offset center of volcanic features, if the variant has an offset center
      • variant?: String: The variant to place in. Optional, defaults to 'all'
      • minEasing?: number: The minimum easing value, in the range [0, 1]. Optional, defaults to 0
      • maxEasing?: number: The maximum easing value, in the range [0, 1]. Optional, defaults to 1
      • hashMin?: number: The minimum hash value, in the range [0, 1]. Optional, defaults to 0
      • hashMax?: number: The maximum hash value, in the range [0, 1]. Optional, defaults to 1