how to increase or alter light sources?

zBuilder
New member
 
Posts: 3
Joined: Mon Nov 17, 2014 22:40
In-game: zBuilder

how to increase or alter light sources?

by zBuilder » Thu Jun 30, 2016 18:12

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
 

User avatar
whitephoenix
Member
 
Posts: 18
Joined: Sun Jun 26, 2016 22:43
GitHub: whitephoenix0
IRC: whitephoenix
In-game: whitephoenix

Re: how to increase or alter light sources?

by whitephoenix » Sat Jul 02, 2016 19:01

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
 

zBuilder
New member
 
Posts: 3
Joined: Mon Nov 17, 2014 22:40
In-game: zBuilder

Re: how to increase or alter light sources?

by zBuilder » Sun Jul 03, 2016 00:35

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
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: how to increase or alter light sources?

by paramat » Sun Jul 03, 2016 05:07

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.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron