HomeJavaModsFlashlight - Dynamic Lighting
Flashlight - Dynamic Lighting
Flashlight Plugin
A Minecraft Java Edition plugin that provides dynamic lighting for held items. When players hold light-emitting items in either hand, they will emit light equivalent to their placed block counterpart.

Features
Installation
  1. Download the plugin JAR file
  2. Place it in your server's plugins folder
  3. Restart your server
  4. Configure the plugin using /flashlight commands or edit config.yml
How It Works
The plugin uses invisible light blocks that are placed at the player's location when they hold light-emitting items. These blocks are automatically cleaned up when:

Commands
Main Command: /flashlight (aliases: /fl, /light)
Examples
/flashlight set diamond_sword 8 # Make diamond swords emit light level 8
/flashlight set torch 14 # Set torch light level to 14
/flashlight remove redstone # Remove redstone from light sources
/flashlight status Steve # Check Steve's current light level
/flashlight toggle # Disable/enable the plugin

Configuration
The plugin creates a config.yml file with the following structure:

# General settings
enabled: true
update-interval: 5 # Update frequency in ticks
max-light-distance: 50 # Maximum light distance
require-permission: false # Require flashlight.use permission

# Light levels for items (0-15)
light-levels:
torch: 14
lantern: 15
glowstone: 15
# ... many more items
Default Light Sources
The plugin comes pre-configured with realistic light levels for:

Permissions
Technical Details
Building from Source
  1. Clone this repository
  2. Ensure you have Java 17+ and Maven installed
  3. Run mvn clean package
  4. The compiled JAR will be in the target folder
Compatibility
Performance Notes
Support
For issues, feature requests, or questions, please create an issue on the GitHub repository.

License
This project is licensed under the MIT License.

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.

Flashlight - Dynamic Lighting is a free Minecraft Java mod. Compatible with Minecraft 1.20, 1.20.6, 1.21. Downloaded 195 times (via Spigot). Download it and open it directly in the game.

Explore more