Data Packs Server Utility

Brightness Adjuster Library

  • 1.7k views 0 today
  • save_alt 85 downloads
Compatibility
Minecraft 1.20
Changes include
  • Predicates
  • 9
  • 6
  • 3
HeDeAn
Lvl 56Grandmaster Programmer Mage
77
This datapack is a small library that helps you with your custom blocks.



When putting item displays inside of blocks, they get an ugly shadow (because the inside of a full block has a light level of 0). If you then run the provided public function as and at the display entity, it looks for a block that touches the custom block and lets light pass through. If it finds one, it gets the light level from that block and applies it to the display's brightness. If it doesn't find one, that means it is buried and sets the brightness to 0.



the function to run: brightness_adjuster:public/set_brightness.


It works for version 1.20.3+

More like this

  Have something to say?

Dermugettum
08/31/2025 6:38 pm
Level 26 : Expert Miner
If only that shadow issue was resolved in vanilla. Ok if I use this for my own data pack?
1
HeDeAn
09/01/2025 3:20 pm
Level 56 : Grandmaster Programmer Mage
sure, that's why I made this. It's a library, that measn it is supposed to be used in other packs and not as a standalone pack (it doesn nothing on its own, it only provides functions that do soemthing if called from the outside)
2
Titruc
03/17/2024 6:27 pm
Level 75 : Legendary Cake
super usefull librairie ! thanks
1

Welcome