dynamic light
The Dynamic Light script is a simple lighting system that makes Minecraft feel more realistic by adding dynamic light effects.
Screenshots

Description
Disclaimer: the image was created by AI
The Dynamic Light script is a simple lighting system that enhances realism in Minecraft by allowing certain light sources—such as torches or lanterns—to emit light dynamically while being held or moved. This creates a more immersive experience, as the environment reacts to your movement instead of relying only on static lighting.
What makes this different from other add-ons is that it doesn’t change any core systems; it only provides improvements.
Changelog
Tracks the player's dimension, position, and light level correctly.
Uses runCommand instead of unnecessary asynchronous command calls.
Cleans up cached light blocks when players leave.
Separates light detection, placement, removal, and cleanup logic.