Light Level 2025
按 F9 查看方块的光照等级。
灵感来源于 LightLevel By parzivail,并实现了一些改进。

依赖项
你可以在每个版本的描述中找到依赖项信息。
Minecraft 26.4-pre-1 需要 Java 25 或更高版本。构建此分支也需要 JDK 25 或更高版本;请使用已提交的 Gradle 包装器。游戏不再混淆,因此此分支使用其官方名称,无需 Yarn 映射。
功能
维度特定的颜色编码
用于表示光照等级的颜色可以在 config/light-level-2025.yaml 中自定义为十六进制颜色代码。
主世界
-
敌对生物无法生成
- 颜色:绿色
- 条件:
- 方块光照 >= 1
- 配置字段:
text.color.safe
-
夜晚时敌对生物可以生成
- 颜色:黄色
- 条件:
- 方块光照 = 0
- 天空光照 >= 8
- 配置字段:
text.color.warning
-
敌对生物随时可能生成
- 颜色:红色
- 条件:
- 方块光照 = 0
- 天空光照 <= 7
- 配置字段:
text.color.danger
下界
-
生物无法生成
- 颜色:绿色
- 条件:
- 方块光照 >= 12
- 配置字段:
text.color.safe
-
生物随时可能生成
- 颜色:红色
- 条件:
- 方块光照 <= 11
- 配置字段:
text.color.danger
末地
-
生物无法生成
- 颜色:绿色
- 条件:
- 方块光照 >= 1
- 配置字段:
text.color.safe
-
生物随时可能生成
- 颜色:红色
- 条件:
- 方块光照 = 0
- 配置字段:
text.color.danger
可调节的文字高度
如果目标方块上方有一个没有碰撞箱的方块,且其外观遮挡了文字,则光照等级将显示在其视觉效果的上方。
调试模式
按 F3 同时显示方块光照和天空光照等级。
技术特性
方块排除条件
如果满足以下条件,目标方块的渲染将被跳过:
-
目标方块是以下之一(配置字段:
block.blacklist):minecraft:airminecraft:barrierminecraft:bedrockminecraft:chain_command_blockminecraft:command_blockminecraft:end_portalminecraft:nether_portalminecraft:repeating_command_block
-
目标方块不透明但视觉上透明。
- 排除示例:
minecraft:glassminecraft:ice
- 不排除示例:
minecraft:glowstoneminecraft:packed_ice
- 排除示例:
-
目标方块没有完整的方形顶面。
- 排除示例:
- 下半砖
- 正放的楼梯
- 不排除示例:
- 上半砖
- 倒放的楼梯
- 排除示例:
-
目标方块上方的方块具有碰撞形状。
- 排除示例:
minecraft:ladderminecraft:snow(层数 >= 2)
- 不排除示例:
minecraft:vineminecraft:snow(层数 = 1)
- 排除示例:
缓存
该模组会缓存关于方块位置和待渲染文本的信息,并将其存储在内存中以加快访问速度。
通过设置帧缓存更新频率,更新率会根据 FPS 自动调整——在高 FPS 环境中更频繁地更新,在低 FPS 环境中较少更新。
你可以通过配置文件中的 cache.update_interval_frames 更改更新频率。
渲染剔除
该模组不会渲染玩家不可见的目标方块的光照等级。
配置
你可以通过 config/light-level-2025.yaml 自定义模组行为。
-
render_distancehorizontal: 渲染的最大水平距离- 默认值:
16
- 默认值:
vertical: 渲染的最大垂直距离- 默认值:
4
- 默认值:
-
blockblacklist: 排除渲染的方块- 默认值:
minecraft:airminecraft:barrierminecraft:bedrockminecraft:chain_command_blockminecraft:command_blockminecraft:end_portalminecraft:nether_portalminecraft:repeating_command_block
- 默认值:
whitelist: 包含渲染的方块- 默认值:
minecraft:mudminecraft:slime_blockminecraft:soul_sand
- 默认值:
-
textcolor:safe: 敌对生物无法生成的光照等级- 默认值:
40FF40
- 默认值:
warning: 在主世界夜间敌对生物可以生成的光照等级- 默认值:
FFFF40
- 默认值:
danger: 敌对生物始终可能生成的光照等级- 默认值:
FF4040
- 默认值:
neutral: 未知或不支持的维度显示颜色- 默认值:
FFFFFF
- 默认值:
scale:normal: 正常状态下的文本大小- 默认值:
0.03125
- 默认值:
debug: 调试界面中的文本大小- 默认值:
0.020833334
- 默认值:
offset_y_base: 文本相对于方块的高度偏移量- 默认值:
0.1
- 默认值:
hide_safe: 隐藏被视为“安全”的光照等级数值- 默认值:
false
- 默认值:
-
cacheupdate_interval_frames: 更新方块缓存的频率(以帧为单位)- 默认值:
20
- 默认值:
贡献
我们欢迎社区成员的贡献!
如需参与贡献,请 Fork 该仓库并在 GitHub 上创建拉取请求。 感谢您对本项目变得更好的帮助!
请注意,当我们使用大语言模型进行代码校对时,代码的某些部分可能会发生变化。 这并不代表对您原始代码的任何不满或存在缺陷。
Light Level 2025
Press F9 to see the block light levels.
Inspired by LightLevel By parzivail, with some improvements implemented.

Dependencies
You can find the dependencies in the description of each release.
Minecraft 26.4-pre-1 requires Java 25 or newer. Building this branch also requires JDK 25 or newer; use the checked-in Gradle wrapper. The game is no longer obfuscated, so this branch uses its official names without Yarn mappings.
-
Fabric Loader
Download from fabricmc.net -
Fabric API
Download from modrinth
View source on GitHub
Features
Dimension-Specific Color Coding
The colors used to represent the light levels can be customized in config/light-level-2025.yaml as
hex color codes.
Overworld
-
Hostile mobs cannot spawn
- color: green
- conditions:
- block light >= 1
- config field:
text.color.safe
-
Hostile mobs can spawn at night
- color: yellow
- conditions:
- block light = 0
- sky light >= 8
- config field:
text.color.warning
-
Hostile mobs can always potentially spawn
- color: red
- conditions:
- block light = 0
- sky light <= 7
- config field:
text.color.danger
The Nether
-
Mobs cannot spawn
- color: green
- conditions:
- block light >= 12
- config field:
text.color.safe
-
Mobs can always potentially spawn
- color: red
- conditions:
- block light <= 11
- config field:
text.color.danger
The End
-
Mobs cannot spawn
- color: green
- conditions:
- block light >= 1
- config field:
text.color.safe
-
Mobs can always potentially spawn
- color: red
- conditions:
- block light = 0
- config field:
text.color.danger
Adjustable Text Height
If a block that doesn't have a collision box is above the target block and its appearance obstructs the text, the light level will be shown above its visual.
Debug Mode
Press F3 to show both the block light and the sky light levels.
Technical Features
Block Exclusion Conditions
The rendering on a target block will be skipped if:
-
The target block is one of the following (config field:
block.blacklist):minecraft:airminecraft:barrierminecraft:bedrockminecraft:chain_command_blockminecraft:command_blockminecraft:end_portalminecraft:nether_portalminecraft:repeating_command_block
-
The target block is not opaque and visually transparent.
- Examples Excluded:
minecraft:glassminecraft:ice
- Examples Not Excluded:
minecraft:glowstoneminecraft:packed_ice
- Examples Excluded:
-
The target block does not have a full square top surface.
- Examples Excluded:
- bottom slabs
- right-side-up stairs
- Examples Not Excluded:
- top slabs
- up-side-down stairs
- Examples Excluded:
-
A block above the target block has a collision shape.
- Examples Excluded:
minecraft:ladderminecraft:snow(layers count >= 2)
- Examples Not Excluded:
minecraft:vineminecraft:snow(layers count = 1)
- Examples Excluded:
Caching
This mod caches information about block positions and the text to be rendered, storing it in memory for faster access.
By setting the cache update frequency in frames, the update rate automatically adjusts based on FPS — updating more frequently in high-FPS environments and less frequently in low-FPS environments.
You can change the update frequency via cache.update_interval_frames in the config file.
Rendering Culling
This mod does not render the light level for a target block that is invisible to the player.
Configuration
You can customize the mod behavior via config/light-level-2025.yaml.
-
render_distancehorizontal: Maximum horizontal distance for rendering- Default:
16
- Default:
vertical: Maximum vertical distance for rendering- Default:
4
- Default:
-
blockblacklist: Blocks to exclude from rendering- Default:
minecraft:airminecraft:barrierminecraft:bedrockminecraft:chain_command_blockminecraft:command_blockminecraft:end_portalminecraft:nether_portalminecraft:repeating_command_block
- Default:
whitelist: Blocks to include in rendering- Default:
minecraft:mudminecraft:slime_blockminecraft:soul_sand
- Default:
-
textcolor:safe: Light level where hostile mobs cannot spawn- Default:
40FF40
- Default:
warning: Light level where hostile mobs can spawn at night in Overworld- Default:
FFFF40
- Default:
danger: Light level where hostile mobs can always potentially spawn- Default:
FF4040
- Default:
neutral: Display color for unknown or unsupported dimensions- Default:
FFFFFF
- Default:
scale:normal: Text size for normal state- Default:
0.03125
- Default:
debug: Text size for debug screen- Default:
0.020833334
- Default:
offset_y_base: Height to offset the text from the block- Default:
0.1
- Default:
hide_safe: Hides light level values that are considered "safe"- Default:
false
- Default:
-
cacheupdate_interval_frames: Frequency in frames to update the block cache- Default:
20
- Default:
Contribution
We welcome contributions from the community!
To contribute, please fork the repository and create a pull request on GitHub. We appreciate your help in making this project even better!
Please note that when we use a LLM for code proofreading, aspects of the code might change. This isn't a reflection of any dissatisfaction or shortcomings with your original code.
下载 Light Level 2025
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Light Level 2025
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Light Level 2025
下载 Light Level 2025
下载 Light Level 2025
下载 Light Level 2025
下载 Light Level 2025
下载 Light Level 2025
下载 Light Level 2025
下载 Light Level 2025
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧