Custom Light allows players/server administrators to customize the light emission levels of in-game blocks. The light level of any block can be modified through a simple configuration file without altering core game files, supporting both client and server environments.
The mod automatically generates corresponding configuration files based on the running environment, located as follows:
| Environment | File Path | File Name |
|---|---|---|
| Client (when launching the game) | Game root directory/config | custom_light_Client.toml |
| Server (when starting the server) | Server root directory/config | custom_light_Server.toml |
When a client joins a server with this mod installed, it will automatically synchronize the server's custom_light_Server.toml configuration file to ensure consistent block lighting effects between the client and server.
The default configuration files for the client and server are identical. Below is the default configuration example and format explanation:
# Custom Light config
# 格式: [light] 下方的 "命名空间:方块ID" = 亮度(0-15)
# Format: Under [light], "namespace:block ID" = light level (0-15)
[light]
"minecraft:torch" = 15
"minecraft:wall_torch" = 15
[light] node;"namespace:block ID" = light level;