can i raise up the light source of torch??

sky
Member
 
Posts: 152
Joined: Tue Oct 16, 2012 11:59

can i raise up the light source of torch??

by sky » Fri Nov 02, 2012 13:09

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??
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Nov 02, 2012 13:14

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.
 

sky
Member
 
Posts: 152
Joined: Tue Oct 16, 2012 11:59

by sky » Sat Nov 03, 2012 08:21

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 ?
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sat Nov 03, 2012 09:35

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.
 

User avatar
GloopMaster
Member
 
Posts: 213
Joined: Wed Aug 01, 2012 18:03

by GloopMaster » Sat Nov 03, 2012 20:53

Meow.

That is all.
 


Return to WIP Mods

Who is online

Users browsing this forum: Google [Bot] and 14 guests

cron