Minecraft API: 1.19
Tested on Spigot MC Server Versions: 1.19, 1.20, 1.21
Releases can be found on the plugin's Spigot page: TorchLight
TorchLight is a Minecraft plugin designed to illuminate your offhand torch when you are exploring the dark expanses of the world! This plugin provides dynamic lighting for players wielding a torch in their offhand, adding an immersive experience to your journeys.
- Dynamic Offhand Lighting: Automatically illuminates the area around the player when holding a torch in their offhand.
- Safe Design: Only works in AIR blocks to prevent destroying grass, snow, decorations, etc.
- Simple Commands: Enable or disable the plugin using intuitive commands.
- Efficient Cleanup: Cleans up light sources swiftly when disabled, preventing stray lighting.
- Performance Optimized: Throttles light updates to reduce server load
Tested on Spigot server 1.19, 1.20, 1.21
- Grab the latest version of the plugin from the Spigot page: https://www.spigotmc.org/resources/torch-light.116707/
- Place the extracted jar into your plugins folder
-
Automatic Lighting: Once enabled, the plugin will detect torches in players' offhand slots and automatically illuminate their surroundings.
-
Commands:
- Enable/Disable:
/torchlight on
: (default) Enables the offhand lighting feature./torchlight off
: Disables the offhand lighting feature./torchlight time <seconds[1;30]>
: Set the light fade-out timer./torchlight status
: Shows current plugin settings./torchlight light-level <level[1;15]>
: Controls the light level of the torch.
- Enable/Disable:
-
Permissions:
torchlight.toggle
: Grants permission to toggle the lighting feature.
The config.yml will be created in the plugins folder, inside the Torch plugin folder, and it will hold any configs that need persistence
-
Light doesn't work in grass fields or non-air blocks:
- This is a known limitation - TorchLight only works in AIR blocks
- Placing lights in grass, snow, water, etc. would destroy those blocks
- See [Issue #8] for technical research on packet-based alternatives
- This ensures the plugin never destroys your builds or decorations
-
Light blocks not appearing:
- Ensure the plugin is enabled (
/torchlight status
) - Check that players have the correct permissions
- Some other plugins or game mechanics might interfere with block placement
- Ensure the plugin is enabled (
-
Performance issues:
- Try reducing the light timer duration (
/torchlight time 1
) - Set a lower light level in the configuration
- The plugin automatically throttles light updates to minimize impact
- Try reducing the light timer duration (
-
Conflicts with other plugins:
- TorchLight modifies AIR blocks in the world, which might conflict with area protection plugins
- Check console for errors related to block placement permissions
- For large servers, consider setting a lower default light timer (1-2 seconds)
- Players in creative or spectator mode are ignored by the lighting system
- Only air blocks will be replaced with light blocks, until this is implemented
Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request. We follow the Conventional Commits specification to maintain a clean commit history and automate our release process.
You can contribute in several ways:
- Code contributions: Fork the repository and submit a pull request
- Bug reports: Open an issue on our GitHub Issues page
- Feature requests: Suggest new features through our issues page
- Documentation: Help improve or translate documentation
If you encounter issues or have questions about using TorchLight, please submit an issue on our GitHub Issues page.
TorchLight is released under the AGPL License.