
Brightness Adjuster Library
This datapack is a compact library designed for working with custom blocks.
When placing item displays inside blocks, an unsightly shadow appears because the interior of a full block has zero light level. To solve this issue, run the provided public function as and at for the display entity. The algorithm searches for adjacent blocks that touch the custom block and allow light to pass through. When such a block is found, the system borrows its light level and applies it to the display's brightness. If no suitable block is found (indicating complete enclosure), the brightness is set to zero.
Function to use: brightness_adjuster:public/set_brightness.