充电手电筒

一款用于 Minecraft 的手持手电筒物品。支持 Lucent 或 Embeddium/Rubidium Dynamic Lights 等动态光照 API。
描述
为你探索黑暗冒险提供的手持手电筒。需要消耗能量才能运作。本模组不提供任何给手电筒充电的手段,而是提供对 Forge Energy 的支持,因此手电筒可以使用任何支持 Forge Energy 的其他模组的充电器进行充电。提供了配置选项来调整手电筒的属性与行为。
提示: 将 energyDrainPerTick 设置为 0 将完全禁用能量需求。
动态光照
本模组目前支持 3 种不同的动态光照系统:
只需在客户端安装上述任意一个模组即可。如果客户端未安装额外的(受支持的)光照模组,则使用原版系统。
重要提示: 我发现在 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧