Light Inhibition Mod

一款适用于 Minecraft 的 Fabric 模组,允许拥有 OP 权限的玩家通过命令暂停或恢复所有服务器端的光照更新。启用光照抑制后,放置或破坏方块将不再触发光照计算。这有助于减少由光照更新引起的服务器卡顿,也可用于特殊地图的制作。
搭配 Carpet TIS Addition 的方块更新抑制功能,可以在完全黑暗中建造下界传送门并最大化刷怪笼的效率。
- 制作者: YkinLing
- 辅助 AI: Deepseek
- QQ 群: 783492491(用于获取源代码)
警告: 本模组会抑制原版光照引擎。请谨慎使用,并在尝试前务必备份你的世界。
光照抑制范围覆盖整个世界。一旦激活,它将停止所有光照状态的更新。
功能
/lightinhibition on – 启用光照抑制,阻止所有光照更新。
/lightinhibition off – 禁用光照抑制,恢复原版光照行为。
/lightinhibition status – 显示当前光照抑制的状态。
- 当服务器停止时自动禁用抑制功能,以确保安全保存世界。
- 支持中文和英文(根据客户端语言自动切换)。
使用方法
- 将模组放入服务端或客户端的
mods 文件夹中。
- 启动游戏并加入一个世界。
- 确保你拥有 OP 权限(等级 4)或在单人游戏中启用了作弊。
- 在聊天栏输入命令,例如
/lightinhibition on 以启用抑制。
- 在抑制活动期间,不会发生任何光照更新。要恢复正常行为,请运行
/lightinhibition off。
重要说明
- 在抑制活动期间放置的光源方块不会发光。当关闭抑制功能时,这些方块不会自动变亮(任何待处理更新都会被丢弃)。你可以通过在区域附近放置或破坏方块来强制进行光照更新,或者重载世界。
- 该模组在服务端运行。在多人游戏中,所有玩家看到的光照状态都是相同的,因为服务端控制着光照更新。
- 你不需要在退出游戏前手动禁用抑制功能;模组会在服务器停止时自动禁用它,从而防止任何保存问题。
要求
- Minecraft 1.21.11
- Fabric Loader 0.18.4+
- Fabric API
许可证
BSD 2
Light Inhibition Mod

A Fabric mod for Minecraft that allows players with OP permissions to pause or resume all server-side light updates via commands. When light inhibition is enabled, placing or breaking blocks no longer triggers light calculation. This can help reduce server lag caused by light updates or be used for special map creation.
Pair with Carpet TIS Addition's block update suppression feature to build nether portals in complete darkness and maximize mob farm efficiency.
- Producer: YkinLing
- Auxiliary AI: Deepseek
- QQ Group: 783492491 (For obtaining the source code)
Warning: This mod suppresses the vanilla light engine. Use with caution and always back up your world before experimenting.
The light suppression range covers the entire world. Once activated, it will cease all updates of the light status.
-
The command has been enabled in the server, but the brightness update has not been prevented? Please try to log out of the client and then reconnect to the server.
-
For the light source blocks that no longer have light, there should be no light updates within their surrounding area. Any update to the brightness range of a light source cube that is without illumination will force it to re-update its brightness. Do not update the brightness near the shutdown command; otherwise, the light source may unexpectedly return to its original state.
Features
/lightinhibition on – Enables light inhibition, preventing all light updates.
/lightinhibition off – Disables light inhibition and restores vanilla light behavior.
/lightinhibition status – Displays the current state of light inhibition.
- Automatically disables inhibition when the server stops to ensure safe world saving.
- Supports both Chinese and English (switches based on client language).
How to Use
- Place the mod in the
mods folder of your server or client.
- Start the game and join a world.
- Ensure you have OP permission (level 4) or have cheats enabled in single‑player.
- Type the command in chat, e.g.,
/lightinhibition on to enable inhibition.
- While inhibition is active, no light updates will occur. To restore normal behavior, run
/lightinhibition off.
Important Notes
- Light sources placed while inhibition is active will not emit light. When inhibition is turned off, those blocks will not automatically become bright (any pending updates are discarded). You can force a light update by placing or breaking a block near the area, or by reloading the world.
- The mod works server‑side. In multiplayer, all players will see the same lighting state because the server controls light updates.
- You do not need to manually disable inhibition before quitting the game; the mod will automatically disable it when the server stops, preventing any save issues.
Requirements
- Minecraft 1.21.11
- Fabric Loader 0.18.4+
- Fabric API
License
BSD 2
评论 0
登录后参与评分
还没有评论,来抢沙发吧