Skip to content

Configuration File

zomb_676 edited this page Nov 14, 2022 · 7 revisions

Configuration File

The file used to describe Colored Light and Bloom setting

Place

the config file now has four places.

  1. the built-in file is located at assets/shimmer/shimmer.json in the mod jar, which is used for default settings
  2. the file located at assets/shimmer/shimmer.json in any resource packs you loaded
  3. any .json files under the .minecraft/config/shimmer folder
  4. for modders, you can use shimmer's Event to submit config files, see source files under this package

Notice

If your configuration does not work, please check the log first
Please use any code editor like vscode or online website like this to check your JSON syntax

Fields

you can see the build-in file for reference https://github.com/Low-Drag-MC/Shimmer/blob/main/Common/src/main/resources/assets/shimmer/shimmer.json

ColorReference

{
  "ColorReference": {
      "yellow" : "#22ffC8FF",
      "red" : {
        "r": 255,
        "g": 165,
        "b": 13,
        "a": 255
      }
  }
}

the key is the name and the value indicates the color
the color begins with a # char is hexadecimal formated in #RRGGBBAA

when you need to reference it, you must use styles like #color_name, for example

{
  "LightBlock": [
    {
      "block": "minecraft:sea_lantern",
      "color": "#yellow",
      "radius": 7
    }
  ]
}

Enable

{
  "Enable" : true
}

this controls whether this file will be loaded or not
by default, this is true if you do not set this field

Bloom

can be found at the Bloom Page

Colored Light

can be founded at the Colored Light Page

Clone this wiki locally