promotional bannermobile promotional banner

Dynamic Light GT

Carry your torches, lanterns, and glowing items with you, lighting up caves and dark corners as you walk, crawl, or climb, no placement needed.
Back to Files

Advanced Dynamic Lights v1.1.2.mcaddon

File nameAdvanced Dynamic Lights v1.1.2.mcaddon
Uploader
REX1858REX1858
Uploaded
Aug 2, 2026
Downloads
2.4K
Size
85.0 KB
File ID
8563031
Type
R
Release
Supported game versions
  • 26.30
  • 26.20
  • 26.13
  • 26.12
  • 26.11
  • 26.10

What's new

━━━━━━━━━━━━━━━ NEW IN v1.1.2 ━━━━━━━━━━━
✦ COLORED LIGHT BLOCKS
The single dynamic light block has been split into 16 color
variants, one for each Minecraft dye color. Every built-in
item and entity now has an assigned color that matches its
visual identity -- torches glow orange, soul sources glow
cyan, redstone sources glow red, amethyst glows magenta,
and so on. Active TNT is now explicitly red.

✦ PBR / LOCAL LIGHTING
The Resource Pack now declares the pbr capability. A new
local_lighting/local_lighting.json file registers all 16
block variants as point_light sources with their exact hex
color values. On devices with PBR active, dynamic lights
will tint the surrounding geometry with the correct hue
instead of producing white light.

✦ COLOR TAGS FOR EXTERNAL ADDONS
Items and entities can now specify a light color using tags
alone, with no scripting required. Add one of gt:white,
gt:orange, gt:magenta, gt:light_blue, gt:yellow, gt:lime,
gt:pink, gt:gray, gt:light_gray, gt:cyan, gt:purple,
gt:blue, gt:brown, gt:green, gt:red, or gt:black alongside
the existing gt:light_N tag. The system detects and applies
the color automatically at every scan tick.

✦ COLOR FIELD IN PUBLIC API
All public API functions now expose color. registerItemLight
and registerEntityLight accept an optional color parameter
that defaults to white. resolveItemLight, resolveEntityLight,
getRegisteredItemLight, getRegisteredEntityLight,
listRegisteredItems, and listRegisteredEntities all return
or include color in their output objects.

✦ TAG CONSTANTS EXPORTED
GT_LIGHT_TAG, GT_AIR, GT_WATER, and GT_BOTH are now exported
from api.js. Addons that previously duplicated these strings
locally can import them directly instead.

✦ REGISTERED ENTITY SCAN IN MAIN LOOP
The registeredEntityTypes Set is now exported from api.js.
The main scan loop queries each type registered via
registerEntityLight near every player, so custom entities
registered at module load are discovered and lit without
requiring tags or a separate mechanism.

✦ COLOR-TRIGGERED BLOCK REPLACEMENT
The emitter map now tracks color alongside position and
level. Whenever a light source changes color -- for example,
a player picks up a different item -- the stale block is
removed and a new colored variant is placed immediately.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

━━━━━━━━━━━━ CHANGED IN v1.1.2 ━━━━━━━━━━━
~ BOTH_MODE VALUE CORRECTED
BOTH_MODE was carrying the value 3, which conflicted with
the three-value mode range [0, 1, 2] used by block states.
It is now 0. All entity and item definitions have been
updated. This is an internal fix with no visible behavior
change, but it corrects a latent inconsistency that could
have caused wrong block state writes.

~ getBaseLevelAndMode RENAMED
The internal function getBaseLevelAndMode has been renamed
to getBaseConfig. Its return type now includes color in
addition to baseLevel and mode. Any addon that imported
this function by name will need to update the call site.

~ CHECK LIGHT GUARD UPDATED
check_light.js now calls isLightBlockId before processing
a block tick. Non-light blocks that share the same tick
interval can no longer trigger the cleanup logic. The mode
validation condition was also corrected to accept 0 as a
valid mode now that BOTH_MODE equals 0.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

━━━━━━━━━━━━ REMOVED IN v1.1.2 ━━━━━━━━━━━━━
✗ SINGLE DYNAMIC LIGHT BLOCK
gt:dynamic_light no longer exists. It has been replaced by
the 16 colored variants under blocks/light/. Worlds that
still contain the old block ID will have orphan blocks that
the cleanup system cannot recognize. A one-time world clean
is recommended when updating from v1.1.1.

✗ CUSTOM_LIGHT_BLOCK_ID CONSTANT
The exported string constant CUSTOM_LIGHT_BLOCK_ID has been
removed. Use getLightBlockId(color) to obtain a block ID,
or isLightBlockId(typeId) to test membership. Direct string
comparisons against the old ID will no longer match.

✗ getBaseLevelAndMode FUNCTION
Removed in favor of getBaseConfig, which returns the same
data plus color. See the CHANGED section above.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

This mod has no additional files