Custom Light
概述
Custom Light 允许玩家或服务器管理员自定义游戏内方块的发光等级。通过一个简单的配置文件即可修改任意方块的发光等级,无需更改核心游戏文件,同时支持客户端和服务器环境。
配置文件生成
模组会根据运行环境自动生成相应的配置文件,路径如下:
| 环境 | 文件路径 | 文件名 |
|---|---|---|
| 客户端(启动游戏时) | 游戏根目录/config | custom_light_Client.toml |
| 服务端(启动服务器时) | 服务器根目录/config | custom_light_Server.toml |
配置同步
当安装了该模组的客户端加入服务器时,会自动将服务器的 custom_light_Server.toml 配置文件同步到客户端,以确保客户端与服务端的方块光照效果一致。
配置文件说明
客户端和服务端的默认配置文件相同。以下是默认配置示例及格式说明:
# 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]节点下; - 每行遵循格式:
"命名空间:方块ID" = 亮度; - 亮度范围为 0 到 15(0 = 无光,15 = 最大光);
- 理论上支持所有原版 Minecraft 方块以及模组添加的方块(需提供正确的命名空间和方块 ID);
注意事项
- 修改配置文件后,需重启客户端/服务端以使更改生效;
- 服务器配置优先于客户端配置,加入服务器时会覆盖客户端配置;
- 请勿填写无效的方块 ID,否则可能导致配置失败或游戏错误;
- 由于 Minecraft 存档文件格式的限制,大于 15 的亮度等级可能会产生未知后果,因此请勿尝试设置超过 15 的亮度等级。
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
下载 Custom Light
下载 Custom Light
下载 Custom Light
下载 Custom Light
下载 Custom Light
下载 Custom Light
下载 Custom Light
下载 Custom Light
下载 Custom Light
优化区块刷新逻辑,修复偶尔导致 Windows 系统出现一定程度卡顿的 bug。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧