作者:rebot | 分类:模组
Minecraft 版本: 25w37a
平台: fabric
标签: game-mechanics utility
Press F9 to see the block light levels.
Inspired by LightLevel By parzivail, with
some improvements implemented.

You can find the dependencies in the description of each release.
Fabric Loader
Download from fabricmc.net
Fabric API
Download from modrinth
View source on GitHub
The colors used to represent the light levels can be customized in config/light-level-2025.yaml as
hex color codes.
Hostile mobs cannot spawn
text.color.safeHostile mobs can spawn at night
text.color.warningHostile mobs can always potentially spawn
text.color.dangerMobs cannot spawn
text.color.safeMobs can always potentially spawn
text.color.dangerMobs cannot spawn
text.color.safeMobs can always potentially spawn
text.color.dangerIf 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.
Press F3 to show both the block light and the sky light levels.
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_blockThe target block is not opaque and visually transparent.
minecraft:glassminecraft:iceminecraft:glowstoneminecraft:packed_iceThe target block does not have a full square top surface.
A block above the target block has a collision shape.
minecraft:ladderminecraft:snow (layers count >= 2)minecraft:vineminecraft:snow (layers count = 1)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.
This mod does not render the light level for a target block that is invisible to the player.
You can customize the mod behavior via config/light-level-2025.yaml.
render_distance
horizontal: Maximum horizontal distance for rendering16vertical: Maximum vertical distance for rendering4block
blacklist: Blocks to exclude from renderingminecraft:airminecraft:barrierminecraft:bedrockminecraft:chain_command_blockminecraft:command_blockminecraft:end_portalminecraft:nether_portalminecraft:repeating_command_blockwhitelist: Blocks to include in renderingminecraft:mudminecraft:slime_blockminecraft:soul_sandtext
color:safe: Light level where hostile mobs cannot spawn40FF40warning: Light level where hostile mobs can spawn at night in OverworldFFFF40danger: Light level where hostile mobs can always potentially spawnFF4040neutral: Display color for unknown or unsupported dimensionsFFFFFFscale:normal: Text size for normal state0.03125debug: Text size for debug screen0.020833334offset_y_base: Height to offset the text from the block0.1hide_safe: Hides light level values that are considered "safe"falsecache
update_interval_frames: Frequency in frames to update the block cache20We 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.
请登录后举报
暂无评论,抢个沙发吧~