介绍
Custom Light
Overview
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.
Configuration File Generation
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 |
Configuration Synchronization
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.
Configuration File Instructions
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
Format Rules
- Configuration items must be written under the
[light]node; - Each line follows the format:
"namespace:block ID" = light level; - The light level ranges from 0 to 15 (0 = no light, 15 = maximum light);
- In theory supports all vanilla Minecraft blocks and mod-added blocks (correct namespace and block ID must be provided);
Notes
- After modifying the configuration file, restart the client/server for changes to take effect;
- Server configuration takes priority over client configuration, and the client configuration will be overwritten when joining the server;
- Do not fill in invalid block IDs, as this may cause configuration failure or game errors;
- Due to the limitations of Minecraft’s save file format, light levels greater than 15 may have unknown consequences, so do not attempt to set light levels above 15.
常见问题
Custom Light 支持哪些 Minecraft 版本?
Custom Light 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Custom Light 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分