充电手电筒

一款用于 Minecraft 的手持手电筒物品。支持 Lucent 或 Embeddium/Rubidium Dynamic Lights 等动态光照 API。
描述
为你探索黑暗冒险提供的手持手电筒。需要消耗能量才能运作。本模组不提供任何给手电筒充电的手段,而是提供对 Forge Energy 的支持,因此手电筒可以使用任何支持 Forge Energy 的其他模组的充电器进行充电。提供了配置选项来调整手电筒的属性与行为。
提示: 将 energyDrainPerTick 设置为 0 将完全禁用能量需求。
动态光照
本模组目前支持 3 种不同的动态光照系统:
- Embeddium/Rubidium Dynamic Lights:非常流畅,性能良好,存在一些细微的视觉妥协(个人偏好)
- Lucent:足够流畅,性能良好,接近原版风格
- 原版:相对流畅,性能尚可,使用光源方块的原版光照系统
只需在客户端安装上述任意一个模组即可。如果客户端未安装额外的(受支持的)光照模组,则使用原版系统。
重要提示: 我发现在 Minecraft 1.20.1 中使用 Embeddium/Rubidium Dynamic Lights 版本 1.6.0 时,当快速移动手电筒光源扫过表面时,会出现一些视觉光照伪影。不过在使用 Embeddium/Rubidium Dynamic Lights 版本 1.5.0 时我没有遇到这个问题,但这可能也与我的设置和/或系统(例如图形卡)有关。如果你遇到类似的问题,我建议尝试该动态光照模组的不同版本。
使用动态光照模组时,请确保已启用实体光照。
服务器/客户端光照
本模组支持多种光照 API,因此连接到同一服务器的多个客户端可能安装了不同的光照模组。以下示例说明了如何处理这些情况:
- 玩家 A 未安装动态光照模组
- 玩家 B 安装了 Lucent
玩家 A 将看到自己的光照以及由玩家 B 的手电筒投射的光照,使用的是回退机制 Vanilla Lighting System(原版光照系统)。
玩家 B 将看到自己的光照以及由玩家 A 的手电筒投射的光照,使用的是 Lucent Lighting System(Lucent 光照系统)。
合成

常见问题
为什么所有配置选项都在服务器端?
由于光的分布需要在服务器上生成和管理 光源实体,因此允许客户端将 光照距离 设置为任意大的值(从而导致服务器需要生成大量光源实体)是不明智的。配置项位于服务器端的另一个 优势 是,所有玩家看到的手电筒行为都是一致的。
我可以在我的整合包中使用这个模组吗?
可以,尽管用吧。
你会添加 Fabric 支持吗?
也许有一天会,但我现在无法给出具体日期。
你会支持更早的 Minecraft 版本(< 1.19)吗?
不会。
Powered Flashlight

A handheld flashlight item for Minecraft. Supports lighting APIs like Lucent or Embeddium/Rubidium Dynamic Lights.
Description
A handheld flashlight for your adventures into the darkness. Requires energy to function. This mod does not provide any means of charging a flashlight but offers support for Forge Energy instead, hence a flashlight can be charged with any chargers from different mods with Forge Energy support. Provides configurations to adjust the properties and behaviour of a flashlight.
Tip: Setting energyDrainPerTick to 0 will disable the energy requirement completely.
Dynamic Lighting
The mod currently supports 3 different dynamic lighting systems:
- Embeddium/Rubidium Dynamic Lights: Very smooth, good performance, some minor visual tradoffs (my personal preference)
- Lucent: Smooth enough, good performance, vanilla-esque
- Vanilla: Relatively smooth, ok performance, vanilla lighting system using light blocks
Simply install any of the above mentioned mods alongside this mod. If no additional (supported) lighting mod is installed on the client the vanilla-system is used.
Important: I've noticed a few visual lighting artifacts using Embeddium/Rubidium Dynamic Lights version 1.6.0 in Minecraft 1.20.1 when moving the light from the flashlight quickly over surfaces. I did not have this issue with Embeddium/Rubidium Dynamic Lights version 1.5.0 though this might aswell be tied to my setup and/or system (e.g. graphics card). In case you run into similar issues I'd recommend to try a different version of the dynamic lighting mod.
Make sure entity lighting is enabled when using a dynamic lighting mod.
Server/Client Lighting
This mod supports different lighting APIs hence multiple clients connected to the same server might have different lighting mods installed. Following example illustrates how these situations are handled:
- Player A has no dynamic lighting mod installed
- Player B has Lucent installed
Player A will see his lighting and the lighting casted by a flashlight from Player B with the fallback Vanilla Lighting System.
Player B will see his lighting and the lighting casted by a flashlight from Player A with the Lucent Lighting System.
Crafting

FAQ
Why are all config options server side?
Since the light distribution requires to spawn and manage light entities on the server it would for instance be a bad idea to allow clients to set the light distance to an arbitrary large value (hence requiring the server to spawn a large amount of light entities). Another advantage of the configs beeing server side is that the flashlights behave the same for everyone.
Can I use this mod in my modpack?
Yes, go ahead.
Will you add Fabric support?
Maybe at some point, but I cannot give you a date right now.
Will you add support for earlier minecraft versions (< 1.19)?
No.
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
下载 Powered Flashlight
更新日志
完整版本。现在支持多种动态光影插件,并带来了一些视觉和性能改进。
[1.0.0] - 2024-08-09
新增
- 插件支持:Embeddium/Rubidium 动态光影
- 插件支持:Lucent
更改
- API 调整(优化了
ILightSource接口,将BlockLightSource替换为EntityLightSource) - 默认配置(另见修复项“配置不一致”)
- 光影系统:光影仅由客户端渲染(光照分布 在服务端进行,并由 光源实体 定义)
修复
- 配置不一致问题:所有配置已移至 服务端配置(位于
.minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml,或在.minecraft/defaultconfigs下为所有新存档创建默认配置) - 影响世界的灯光效果(例如允许作物生长)。由于光影现在仅在客户端生效,此功能已无法实现。此外,该 特性 原本也并非设计初衷。
- 其他小 bug 及性能瓶颈
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧