Colored Lights (Fabric)

Colored Lights (Fabric)

10.5k Downloads

Possibility for a JAVA dev api?

hypherionmc opened this issue ยท 2 comments

commented

Hey fellow south african lol. Will you ever consider adding a JAVA api for modders to use? The JSON is nice, but quite limited in what it can do

commented

Oh hi! ๐Ÿ˜ This is definitely something that would be worth looking into- what kinds of features would you want to be able to use from a potential Java API? ๐Ÿ˜Š

commented

Well what I used to do in my mod, which I had to discontinue because the new mc shaders completely destroyed it, is let the block/tile entity register a method to use for generating colored light.

The basics would be, the function gives you a blockstate, position and optionally a world reference, and the dev then has to return a "Light" object with an RGB value/position (I don't know if you can do separate colors based on the position).

That way devs can decide how they want the light to act based on a blockstate value or something else.

You are welcome to reference the docs for my mod's api for ideas. (The mod is sadly not open-source yet).

https://readme.firstdarkdev.xyz/rgblib/introduction/