Page 1 of 1
Help with lighting?

Posted:
Tue Oct 23, 2012 02:36
by kajoman
I have been searching for a tutorial on how to get nodes to emit light, but so far all of the ones I have found don't work or wrack my brain. I, not being a Computer Genius, am pleading to the community to help me figure out how to make my mod block emit minor light. Thank you

Posted:
Tue Oct 23, 2012 02:56
by Chinchow
go into games then minetest then mods then default and in its init you should search for torches or lava they should say something about emmiting light.

Posted:
Tue Oct 23, 2012 02:56
by Chinchow
go into games then minetest then mods then default and in its init you should search for torches or lava they should say something about emmiting light.

Posted:
Tue Oct 23, 2012 03:46
by kajoman
I tried that, and I have attempted to do the method portrayed within. Sadly, it has not helped. Thank for the try though.

Posted:
Tue Oct 23, 2012 07:40
by qwrwed
light_source = (number),

Posted:
Tue Oct 23, 2012 09:39
by RabbiBob
Hi, post your code for the node if it continues not to work and one of us can help.

Posted:
Tue Oct 23, 2012 10:04
by PilzAdam
In your node definition table you have to insert this line:
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
minetest.register_node("mod:name", {
-- other stuff here
light_source = [number from 0 (no light) to 14 (max light)],
})
See also: