So, i noob in js, and i did smthng like working server.
i made 10240 energy crystal and i want to color it.
if ( v > 40 )
{
if ( v === 10240 )
return 'hue-rotate(200deg) brightness(3) drop-shadow(0px 0px 7px #1bff00)'; <---- this is it
else
if ( v === 5120 )
return 'hue-rotate(200deg) brightness(1.3) drop-shadow(0px 0px 7px #FFFFAA)';
else
if ( v === 2560 )
return 'hue-rotate(170deg) brightness(0.8) contrast(2)';
else
return 'hue-rotate('+( v - 40 )+'deg)';
}
And i colored it with brightness. But i want to make it for example bright green, or even custom texture color.
If i put smthng like color(#htmlcolorhere) or color="green", color("green"), color="#htmlcolor" its just basic cyan crystal. I droped my texture in assets but idk how to load it only on this crystal, and when i tryed to do that i got only crashed server... I really dont know what else i can do. Help please