HomeJavaModsCustomFlashlights | Realistic Lighting, Batteries & Tactics
CustomFlashlights | Realistic Lighting, Batteries & Tactics
ModsJava

CustomFlashlights | Realistic Lighting, Batteries & Tactics

⬇ Download on Spigot

CustomFlashlights 2.0
The Ultimate Realistic Lighting Solution
Ray-Tracing | Batteries | Colored Lenses | ⚔️ Tactical Mechanics
[​IMG]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Overview
Darkness just got dangerous.
Forget standard Night Vision or boring torch spam. CustomFlashlights introduces a revolutionary Ray-Tracing Light System to your server.
With Version 2.0, we've taken immersion to the next level. Equip your players with battery-powered flashlights that project actual light blocks exactly where they aim. Whether you are running a Zombie Apocalypse, Hardcore Survival, or RPG Server, this plugin adds a layer of depth and strategy that vanilla Minecraft simply cannot match.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
✨ Key Features (v2.0)
Dynamic Ray-Tracing Lighting
Advanced Battery System
2.0 Update: Colored Lenses & Filters
Tactical gameplay is here. Equip different lenses (Shift+Left Click) to adapt to the situation:
(Fully configurable in config.yml)
⚔️ Tactical & Survival Mechanics
️ WorldGuard Integration
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
How to: Custom Texture Setup
(CustomModelData Guide)
CustomFlashlights 2.0 supports CustomModelData, allowing you to have different textures for when the flashlight is ON, OFF, or has LOW BATTERY.
Step 1: Configure the Plugin
In
Code (Text):
config.yml
, define the Model Data IDs for each flashlight tier:

Code (Text):

flashlights:
  advanced:
    model_data:
      on: 2001        # Texture when flashlight is ON
      off: 2000       # Texture when flashlight is OFF
      low_battery: 2002 # Texture when battery is < 20%
 
Step 2: Configure your Resource Pack
In your resource pack's item model file (e.g.,
Code (Text):
assets/minecraft/models/item/carrot_on_a_stick.json
), map these IDs to your textures:

Code (Text):

{
  "parent": "item/handheld",
  "textures": { "layer0": "item/carrot_on_a_stick" },
  "overrides": [
    { "predicate": { "custom_model_data": 2000 }, "model": "item/flashlight_off" },
    { "predicate": { "custom_model_data": 2001 }, "model": "item/flashlight_on" },
    { "predicate": { "custom_model_data": 2002 }, "model": "item/flashlight_low" }
  ]
}
 
Now your items will visually update in real-time based on their state!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Roadmap & Future Plans
We are constantly pushing the boundaries of what Spigot can do. Here is what is coming next:
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Commands & Permissions
Player Commands
Code (Text):

/recharge           - Opens the GUI to add batteries to your device.
/checkbattery       - Check exact battery percentage.
 
Permissions:
Code (Text):
customflashlights.recharge
,
Code (Text):
customflashlights.checkbattery
Admin Commands
Code (Text):

/giveflashlight <type> [player] - Give a specific flashlight tier.
/givebattery <type> [player]    - Give a specific battery type.
/cf reload                      - Reload configuration files.
 
Permissions:
Code (Text):
customflashlights.admin
,
Code (Text):
customflashlights.giveflashlight
,
Code (Text):
customflashlights.givebattery
Granular Permissions
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⚙️ Configuration
The plugin is 100% Configurable. Every message, light range, battery life, and lens color can be tweaked.
Spoiler: View Config Snippet
(Paste your config.yml content here)
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Installation
  1. Download CustomFlashlights.jar.
  2. Drop it into your server's
    Code (Text):
    plugins/
    folder.
  3. (Optional) Install WorldGuard for region control.
  4. Restart your server.
  5. Enjoy the light!
Anonymous usage statistics are collected via bStats.
⭐ Love the plugin? Please leave a 5-star review! ⭐

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

CustomFlashlights | Realistic Lighting, Batteries & Tactics is a free Minecraft Java mod. Compatible with Minecraft 1.19, 1.20, 1.20.6, 1.21. Downloaded 41 times (via Spigot). Download it and open it directly in the game.

Explore more