how to increase or alter light sources?

Posted:
Thu Jun 30, 2016 18:12
by zBuilder
is it possible to make custom light sources? I want to make a light that is wider, to be better suited for large rooms.
if possible it would be cool to also change which color the light is produced
Re: how to increase or alter light sources?

Posted:
Sat Jul 02, 2016 19:01
by whitephoenix
As far as I can tell you cannot change the color, but you change a nodes light value using light_source as described in the lua_api specification file:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
light_source = 0, -- Amount of light emitted by node
https://github.com/minetest/minetest/blob/master/doc/lua_api.txt
Re: how to increase or alter light sources?

Posted:
Sun Jul 03, 2016 00:35
by zBuilder
whitephoenix wrote:As far as I can tell you cannot change the color, but you change a nodes light value using light_source as described in the lua_api specification file:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
light_source = 0, -- Amount of light emitted by node
https://github.com/minetest/minetest/blob/master/doc/lua_api.txt
unfortunately,altering that value doesn't seem to affect the light radius/brightness. I tried copying an item,giving it a new name and altering that as well as using the override function. the game doesn't complain,but it doesn't do anything either
Re: how to increase or alter light sources?

Posted:
Sun Jul 03, 2016 05:07
by paramat
Light spread is limited to 16 nodes and that can't be increased without a new lighting system.
You either need multiple lights or place invisible 'airlike' nodes that emit light.