You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add colored light sources for blocks like the respawn anchor, sea pickle, and candle, with their light intensity changing based on their charge level. However, my coding experience is limited, and I don't know how to modify the JSON files. Additionally, I'm unsure if the canvas-colored light branch supports this feature.
The text was updated successfully, but these errors were encountered:
The documentation for the colored lights is under "Block Light API" in the PR: vram-guild/canvas#428.
To make the light values change depending on charge level, you can locate what blockstate affects the charge level (you'll probably find this information when looking at the block in the F3 menu) and add in the variant overrides. For example, for the respawn anchor, you can make the default light be black (a.k.a. no light) and each respective charge level have increasing light intensities.
I want to add colored light sources for blocks like the respawn anchor, sea pickle, and candle, with their light intensity changing based on their charge level. However, my coding experience is limited, and I don't know how to modify the JSON files. Additionally, I'm unsure if the canvas-colored light branch supports this feature.
The text was updated successfully, but these errors were encountered: