Adding lighting to an entity in 1.1.30+
Posted: Mon Apr 05, 2021 4:00 pm
just wondering how i can add lighting/glow effects to entities... my old methods don't seem to work in the current version anymore
in entity.dat:
even if its by script I'm happy in my limited free time to learn.
note:
(1) It is not meant to have an on/off cycle this is a power distribution building so the only time im ok with the light not working at all is if say no power... im also ok with the light being dimmed based on lack of power supply for example.
(2) This is not a vanilla building and is one that im adding by a mod i am working on.
in entity.dat:
Code: Select all
glow_size = 3,
glow_color_intensity = 3,
glow_render_mode = "multiplicative",
light_when_colored = {intensity = 3, size = 3, color = {r=0.4, g=0.8, b=1.2}},
light = {intensity = 3, size = 3, color = {r=0.4, g=0.8, b=1.2}},
note:
(1) It is not meant to have an on/off cycle this is a power distribution building so the only time im ok with the light not working at all is if say no power... im also ok with the light being dimmed based on lack of power supply for example.
(2) This is not a vanilla building and is one that im adding by a mod i am working on.