跳到正文

Door Light Blocker

作者:notNakura

Closed doors block light like solid blocks. Install on client and server.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Door Light Blocker

Closed doors block light. Open doors let it through.

Opening and closing a door

In vanilla Minecraft, doors are transparent to the lighting engine: sunlight and torch light leak straight through a closed door. Door Light Blocker fixes that, so closing a door really darkens the room behind it.

Features

  • Closed doors block light like a solid block.
  • Open doors let light through as usual.
  • Works with every vanilla door, including copper doors.
  • Works out of the box; optionally configurable (see below).
Door open Door closed
Door open Door closed

Light level shown in the F3 debug screen

Configuration

Edit config/door_light_blocker.json to choose how much light a closed door blocks (0 to 15): a default value that applies to every door, plus optional overrides per group (wooden, copper, iron, other) or per door. Per-door overrides beat group overrides, which beat the default; anything you leave unset inherits. With Mod Menu and YACL installed you can do the same from an in-game screen. Open it from the title screen: Mods → Door Light Blocker → config button.

Config screen

Saving from the config screen applies without a restart in singleplayer; on a server, restart it. Light around a door updates when it is opened or closed, so toggle doors after changing the config to refresh them. The client and server must use the same config.

Important: install on client AND server

The mod changes how light is calculated, so it must be installed on both the server and every player’s client. Without it on both sides you will see lighting glitches.

Requirements

  • Minecraft 1.21.11
  • Fabric Loader 0.19.5 or newer
  • Fabric API
  • Optional: Mod Menu and YACL (YetAnotherConfigLib) for the config screen

Compatibility and performance

  • Trapdoors and fence gates are not affected.
  • Mods that replace the lighting engine or add light overhauls have not been tested.
  • Light values are computed once at startup. There is no per-tick cost; opening or closing a door triggers a single local light update.

Source and issues

Source code (MIT license) and issue tracker: https://github.com/notNakura/door-light-blocker

常见问题

Door Light Blocker 支持哪些 Minecraft 版本?

Door Light Blocker 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Door Light Blocker 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分