Lilium Dynamic Light V3.0.0.mcaddon
What's new
Changelog - Lilium Dynamic Light
[3.0.0]
Breaking Changes
- Placed Vanilla Blocks No Longer Get A Script Light Block: The block scan now only looks for blocks from other add-ons, registered through
ldl:register, or added in the menu.minecraft:blocks get their color solely fromlocal_lighting.json. Items, mobs, and players are unaffected. ldl:ticksGoes From 0..3 To 0..1: Halves the permutations for each of the 16 light blocks. 2.x light blocks saved with 2 or 3 are restored as orphans.- Invalid Menu Entries Are Discarded On Load:
ldl:configis validated on load, dropping any Items, Mobs, or Blocks entry whose level is not a whole number from 1 to 15. ldl:lightComponent Levels Are Validated: Levels outside 1 to 15 are rejected instead of clamped (tags still clamp, though bare tags without a number no longer give level 1).- A Block That Only Declares A Color Is Not An Emitter: Blocks now require a level to emit light.
- Mobs Lit By Tags Resist Water Only Through
ldl:water: Built-in water-safe mob tables are no longer combined withldl:*tag lights. - With More Than 8 Players, An Entity Outside Every Cap Goes Dark One Round Later: Entity lights are queried for 8 players per pulse, in turns.
Added
- Item Component
ldl:light: Items can now declarelevel,color,water,offhand, andequipjust like blocks. - Runtime Registration By Script Event:
ldl:registerandldl:unregistermanage items, entities, and blocks in memory via JSON. Emitsldl:ready(3.0.0) on world load. - Slash Commands: Added
/ldl:menu(operators),/ldl:fix(everyone),/ldl:fixlegacy(operators), and/ldl:toggle(everyone). Triple sneak and 2.3.0/scripteventIDs remain as aliases. - Personal Light Switch:
/ldl:toggleturns a player's own emitted light on or off and saves the preference. - Enchanted Glow Switch: New Features menu toggle (on by default) for the level 5 glow on enchanted items.
- Creator Guide And Sample Pack: Added
GUIA_CREADORES.mdand the loadableexamples/creator-sample/pack. - Four New Translation Keys In All 19 Languages: Added keys for the enchanted glow toggle and command messages.
Changed
- Rewritten From Scratch In Strict TypeScript: Modularized
BP/scriptsusing stable@minecraft/server2.11.0 and@minecraft/server-ui2.3.0. Remains backwards-compatible with 2.x worlds. - One Precedence Chain: Priority order: Ignore list > Menu entry > Script event registration >
ldl:lightcomponent >ldl:*tags > Built-in tables. - Block Emitters Find A Cell On Their Sides And Below: Searches the cell above, the four horizontal sides, and the cell below.
- Mob Equipment Is Read On Entering Range And Every 40 Ticks: Gear is no longer read on every single pulse.
Fixed
- An Emitter With No Free Cell Above Got No Light: Now checks the four sides and the cell below if the top is blocked.
- An Emitter Destroyed By An Explosion Or A Piston Kept Its Light For Up To 15 Seconds:
blockExplodereleases light immediately, andpistonActivatere-reads the surrounding area 3 ticks later. - The Block Scan Did Not Stop When The Player Changed Dimension: Uses a single native query per player and clears pending scan data upon changing dimensions.
- Saved Menu Entries Were Not Validated: Fixed (see Breaking Changes).
- A Block Built Into A Light Cell Shared By Two Emitters Could Be Lost: Lights now only overwrite the add-on's own light blocks, air, or still water.
- One Unreadable Player Stopped The Whole Light Pulse: Players are now processed individually, and the entity pass always runs.
Optimized
- Entity Reads Are Cached By Id: Mobs are re-evaluated every 40 ticks instead of every pulse, and dropped items are resolved once for their entire lifetime.
- Player Equipment Is Cached: Recalculated only on slot/inventory changes and every 10 ticks as a fallback.
- Block Scan Is One Native Query: Uses a single filtered
Dimension.getBlocks()call, scanning at most 4 players per pulse every 10 ticks. - Block Scan Evaluations Are Capped Per Pulse: Caps evaluations at 256 positions per player per pulse, carrying the rest over to subsequent pulses.
- Sneak Gestures Use
entityStartSneaking: No longer checks every player on every tick. - A Global Budget For Entity Queries: Queries entities for at most 8 players per pulse in turns, preventing performance cost from scaling with player count.
Removed
- The 2.3.0 JavaScript, The Vanilla Block Level Table And The Type Error Baseline: Removed old
modules/layout, vanilla block level table.
This mod has no additional files

