ZenScript Dynamic Lighting Pack: Dynamic Light via Scripts
Vanilla Minecraft lighting is rigid: torches, lava, and glowstone are locked to blocks and never follow the player. This pack changes that by turning ordinary items into portable light sources using lightweight scripts. Built on the ZenScript language from CraftTweaker, it gives you granular control over how light appears, flickers, and disappears — without touching Java or recompiling anything.
What the Pack Does
The core system spawns invisible light blocks around the player whenever a designated item is held. These blocks vanish instantly when the item is swapped out, and both creation and removal are tick-based. This approach delivers smooth, realistic illumination while keeping CPU overhead low, especially in single-player worlds.
Out of the box, you get a demo script: hold a carrot in your main hand and a warm orange light at brightness level 15 surrounds you. Light blocks are removed every 3 ticks and created every 2 ticks, producing a soft, near-imperceptible update that does not stutter the frame rate. You can swap the carrot for a diamond sword or change the color to cold blue by editing a few lines in the scripts folder.
Key Features
- 15 brightness levels, from faint glow to full torch-level illumination.
- RGB lighting via ColoredLux, with colors that blend into the environment.
- Multiple flicker modes simulating flame, magical glow, or unstable energy.
- Dual-hand support: light can emanate from either main hand or off-hand.
- Works in air, water, and lava without breaking game logic.
- Ore dictionary compatibility for easy integration with other mods.
How to Install
To download ZenScript Dynamic Lighting Pack: Dynamic Light via Scripts, place the pack files into your scripts folder inside the Minecraft instance. The pack requires a ZenScript-capable loader, such as CraftTweaker, and supports both Forge and NeoForge versions. It is designed for Minecraft 1.16.5 through 1.20.1, with community builds available for newer releases. For a quick setup, use a launcher that handles mod distribution directly from its menu — this saves time when you want to test the lighting system alongside other modifications.
Performance Tuning
Two key parameters control performance: the frequency of light block creation and the speed of removal. Lower tick intervals produce smoother light but increase load. On weaker machines or servers, raising the delay to 5–7 ticks yields nearly identical visuals with a noticeable FPS boost. The documentation inside the scripts folder explains every value, so even newcomers can adjust settings confidently.
Extending the System
The included documentation goes beyond code comments. It explains how to add new items, combine colors with brightness levels, and bind lighting to specific biomes or times of day. Using the ore dictionary, you can set rules like "any ore item emits a dim red glow" or "any gemstone shines bright white." This turns the pack into a modular toolkit that adapts to any modpack.
Why Use It
Dynamic lighting transforms how you experience the game. Exploring caves with a handheld light source, night raids with a glowing staff, or lighting your base without cluttering walls with torches — all become possible without heavy mods. Because the system runs on both server and client simultaneously and has minimal dependencies, it fits neatly into existing modded setups.
For those who prefer tested, ready-to-run configurations, the pack is easy to download ZenScript Dynamic Lighting Pack: Dynamic Light via Scripts through a modern Minecraft launcher. ZenScript Dynamic Lighting Pack: Dynamic Light via Scripts for Minecraft remains one of the most flexible and performance-friendly lighting solutions available. If you have ever wanted your torch to follow you instead of staying on the wall, this pack belongs in your scripts folder.