Page 1 of 1

can i raise up the light source of torch??

PostPosted: Fri Nov 02, 2012 13:09
by sky
i want that because torches are bad at light they give small light and i dont want to put in my house 100000 torches, so how i do it??

PostPosted: Fri Nov 02, 2012 13:14
by PilzAdam
If you look at lua-api.txt you will see that there is a field in the node definition table that says how much light it emits.
Now go to init.lua of the default mod to the torch code and you will see that it has
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 = LIGHT_MAX-1,

LIGHT_MAX is defined at the top of ini.lua. So you can only remove the "-1" to make it brighter, but the effect is not very useful.

PostPosted: Sat Nov 03, 2012 08:21
by sky
Adam, i tried it but it don't work , i have tried to change the lua-api.txt and the torch code but nothing , i have do all you said in the post but it still don't work , what can i do Adam ?

PostPosted: Sat Nov 03, 2012 09:35
by PilzAdam
sky wrote:Adam, i tried it but it don't work , i have tried to change the lua-api.txt and the torch code but nothing , i have do all you said in the post but it still don't work , what can i do Adam ?

Changing the lua-apit.txt has no effect because its a simple text document.
And as I said above the effect is realy small so you might not notice it.

PostPosted: Sat Nov 03, 2012 20:53
by GloopMaster