Перейти к содержимому
Mineforgian

Powered Flashlight

A powered flashlight item for Minecraft

21K загрузок14 подписчиковLGPL-3.0-or-laterforge

Обновлён 9 августа 2024 г. · опубликован 23 февраля 2024 г.

Powered Flashlight

POV with flashlight in hand

bisecthosting

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

Crafting recipe

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.

Центр версий

21 версий
  • Релиз76 КБ
  • Релиз74 КБ
  • Релиз76 КБ
  • Релиз76 КБ
  • Релиз76 КБ
  • Релиз76 КБ
  • Релиз76 КБ
  • Бета61 КБ
  • Бета60 КБ
  • Бета61 КБ
  • Бета61 КБ
  • Бета61 КБ
  • Бета61 КБ
  • Бета61 КБ
  • Бета58 КБ
  • Бета56 КБ
  • Бета58 КБ
  • Бета57 КБ
  • Бета57 КБ
  • Бета57 КБ

Ченджлог

1.0.0Релиз1.20.4 · 9 августа 2024 г.

Changelog

Full release. Now with support for different dynamic light plugins aswell as some visual and performance improvements.

[1.0.0] - 2024-08-09

Added

  • Plugin support: Embeddium/Rubidium Dynamic Lights
  • Plugin support: Lucent

Changed

  • API adjustments (tweaked ILightSource interface, replaced BlockLightSource with EntityLightSource)
  • Default configuration (also see fix "Config inconsistencies")
  • Light system: light is now rendered on clients only (light distribution is server-side and defined by light entities)

Fixed

  • Config inconsistencies: moved all configurations to server config (located at .minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml or create a default config for all new worlds at .minecraft/defaultconfigs)
  • Light affecting the world (e.g. allowing crops to grow). This is not possible anymore since light is now client-side only. Apart from that this feature was never intended.
  • Other minor bugs and performance bottlenecks
1.0.0Релиз1.20.3 · 9 августа 2024 г.

Changelog

Full release. Now with support for different dynamic light plugins aswell as some visual and performance improvements.

[1.0.0] - 2024-08-09

Added

  • Plugin support: Embeddium/Rubidium Dynamic Lights
  • Plugin support: Lucent

Changed

  • API adjustments (tweaked ILightSource interface, replaced BlockLightSource with EntityLightSource)
  • Default configuration (also see fix "Config inconsistencies")
  • Light system: light is now rendered on clients only (light distribution is server-side and defined by light entities)

Fixed

  • Config inconsistencies: moved all configurations to server config (located at .minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml or create a default config for all new worlds at .minecraft/defaultconfigs)
  • Light affecting the world (e.g. allowing crops to grow). This is not possible anymore since light is now client-side only. Apart from that this feature was never intended.
  • Other minor bugs and performance bottlenecks
1.0.0Релиз1.20.2 · 9 августа 2024 г.

Changelog

Full release. Now with support for different dynamic light plugins aswell as some visual and performance improvements.

[1.0.0] - 2024-08-09

Added

  • Plugin support: Embeddium/Rubidium Dynamic Lights
  • Plugin support: Lucent

Changed

  • API adjustments (tweaked ILightSource interface, replaced BlockLightSource with EntityLightSource)
  • Default configuration (also see fix "Config inconsistencies")
  • Light system: light is now rendered on clients only (light distribution is server-side and defined by light entities)

Fixed

  • Config inconsistencies: moved all configurations to server config (located at .minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml or create a default config for all new worlds at .minecraft/defaultconfigs)
  • Light affecting the world (e.g. allowing crops to grow). This is not possible anymore since light is now client-side only. Apart from that this feature was never intended.
  • Other minor bugs and performance bottlenecks
1.0.0Релиз1.20.1 · 9 августа 2024 г.

Changelog

Full release. Now with support for different dynamic light plugins aswell as some visual and performance improvements.

[1.0.0] - 2024-08-09

Added

  • Plugin support: Embeddium/Rubidium Dynamic Lights
  • Plugin support: Lucent

Changed

  • API adjustments (tweaked ILightSource interface, replaced BlockLightSource with EntityLightSource)
  • Default configuration (also see fix "Config inconsistencies")
  • Light system: light is now rendered on clients only (light distribution is server-side and defined by light entities)

Fixed

  • Config inconsistencies: moved all configurations to server config (located at .minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml or create a default config for all new worlds at .minecraft/defaultconfigs)
  • Light affecting the world (e.g. allowing crops to grow). This is not possible anymore since light is now client-side only. Apart from that this feature was never intended.
  • Other minor bugs and performance bottlenecks
1.0.0Релиз1.19.4 · 9 августа 2024 г.

Changelog

Full release. Now with support for different dynamic light plugins aswell as some visual and performance improvements.

[1.0.0] - 2024-08-09

Added

  • Plugin support: Embeddium/Rubidium Dynamic Lights
  • Plugin support: Lucent

Changed

  • API adjustments (tweaked ILightSource interface, replaced BlockLightSource with EntityLightSource)
  • Default configuration (also see fix "Config inconsistencies")
  • Light system: light is now rendered on clients only (light distribution is server-side and defined by light entities)

Fixed

  • Config inconsistencies: moved all configurations to server config (located at .minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml or create a default config for all new worlds at .minecraft/defaultconfigs)
  • Light affecting the world (e.g. allowing crops to grow). This is not possible anymore since light is now client-side only. Apart from that this feature was never intended.
  • Other minor bugs and performance bottlenecks
1.0.0Релиз1.19.3 · 9 августа 2024 г.

Changelog

Full release. Now with support for different dynamic light plugins aswell as some visual and performance improvements.

[1.0.0] - 2024-08-09

Added

  • Plugin support: Embeddium/Rubidium Dynamic Lights
  • Plugin support: Lucent

Changed

  • API adjustments (tweaked ILightSource interface, replaced BlockLightSource with EntityLightSource)
  • Default configuration (also see fix "Config inconsistencies")
  • Light system: light is now rendered on clients only (light distribution is server-side and defined by light entities)

Fixed

  • Config inconsistencies: moved all configurations to server config (located at .minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml or create a default config for all new worlds at .minecraft/defaultconfigs)
  • Light affecting the world (e.g. allowing crops to grow). This is not possible anymore since light is now client-side only. Apart from that this feature was never intended.
  • Other minor bugs and performance bottlenecks
1.0.0Релиз1.19.2 · 9 августа 2024 г.

Changelog

Full release. Now with support for different dynamic light plugins aswell as some visual and performance improvements.

[1.0.0] - 2024-08-09

Added

  • Plugin support: Embeddium/Rubidium Dynamic Lights
  • Plugin support: Lucent

Changed

  • API adjustments (tweaked ILightSource interface, replaced BlockLightSource with EntityLightSource)
  • Default configuration (also see fix "Config inconsistencies")
  • Light system: light is now rendered on clients only (light distribution is server-side and defined by light entities)

Fixed

  • Config inconsistencies: moved all configurations to server config (located at .minecraft/saves/<level_name>/serverconfig/powered_flashlight-server.toml or create a default config for all new worlds at .minecraft/defaultconfigs)
  • Light affecting the world (e.g. allowing crops to grow). This is not possible anymore since light is now client-side only. Apart from that this feature was never intended.
  • Other minor bugs and performance bottlenecks
0.10.0-betaБета1.20.4 · 22 марта 2024 г.

Changelog

[0.10.0-beta] - 2024-03-21

Added

  • API to give other modders access to the light and raycasting system

Fixed

  • Improved ray casting algorithm (less light is blocked by obstacles)
  • Minor adjustments to the default configuration (delete config files to update if desired)
  • Warnings spamming the log on startup

[0.9.1-beta] - 2024-02-26

Fixed

  • Project structure: 'easier' maintenance for multiple minecraft versions

[0.9.0-beta] - 2024-01-24

Added

  • Block: Transient light blocks (unobtainable without commands)
  • Feature: Configurations
  • Feature: Forge energy support
  • Item: Flashlight

Комментарии

Загружаем…