KStarbound/ADDITIONS.md

2.5 KiB

JSON additions


Worldgen

  • Where applicable, Perlin noise now can have custom seed specified
    • Change above allows to explicitly specify universe seed (as celestial.config:systemTypePerlin:seed)
  • Perlin noise now can be of arbitrary scale (defaults to 512, specified with scale key, integer type, 2048>=x>=16)

Terrain

  • mix terrain selector got mixSeedBias, aSeedBias and bSeedBias fields, whose deviate respective selectors seeds (default to 0)
  • displacement terrain selector has seedBias added, which deviate seed of source selector (default to 0)
  • displacement terrain selector has xClamp added, works like yClamp
  • rotate terrain selector has rotationWidth (defaults to 0.5) and rotationHeight (defaults to 0.0) added, which are multiplied by world's size and world's height respectively to determine rotation point center
  • min terrain selector added, opposite of existing max (json format is the same as max)
  • cache terrain selector removed due it not being documented, and having little practical value
  • perlin terrain selector now accepts type, frequency and amplitude values (naming inconsistency fix)
  • ridgeblocks terrain selector now accepts amplitude and frequency values (naming inconsistency fix);
  • ridgeblocks has octaves added (defaults to 2), perlinOctaves (defaults to 1)

Biomes

  • Tree biome placeables now have variantsRange (defaults to [1, 1]) and subVariantsRange (defaults to [2, 2])
    • variantsRange is responsible for "stem-foliage" combinations
    • subVariantsRange is responsible for "stem-foliage" hue shift combinations
      • Rolled per each "stem-foliage" combination
      • Also two more properties were added: sameStemHueShift (defaults to true) and sameFoliageHueShift (defaults to false), which fixate hue shifts within same "stem-foliage" combination
    • Original engine always generates two tree types when processing placeable items, new engine however, allows to generate any number of trees.

player.config

  • Inventory bags are no longer limited to 255 slots
    • However, when joining original servers with mod which increase bag size past 255 slots will result in undefined behavior (joining servers with inventory size bag mods will already result in nearly instant desync though, so you may not ever live to see the side effects; and if original server installs said mod, original clients and original server will experience severe desyncs/undefined behavior too)