Download Brightness Adjuster Library — Minecraft Mods — MetaMods

Brightness Adjuster Library

Active

Downloads

0

Last update

1 year ago

Versions

1.20.3 — 1.20.4
Server
Libraries
Game optimization
Utils

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.

Project members
HeDeAnTheonlyone

HeDeAnTheonlyone

Developer

Created: 19 Mar 2024

ID: 23535