Minecraft Data Packs / Server Utility

Brightness Adjuster Library

  • check_circle Predicates
  • 834 views, 7 today
  • 40 downloads, 0 today
  • 5
  • 4
  • 1
HeDeAn's Avatar HeDeAn
Level 54 : Grandmaster Mage
70
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+
CompatibilityMinecraft 1.20
Tags

Create an account or sign in to comment.

1
03/17/2024 6:27 pm
Level 55 : Grandmaster Cake
Titruc
Titruc's Avatar
super usefull librairie ! thanks
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome