Help with lighting?
Help with lighting?
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
Last edited by kajoman on Tue Oct 23, 2012 02:48, edited 1 time in total.
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.
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests
Mods: Orichalcum Stonebricks Extra Chests
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.
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests
Mods: Orichalcum Stonebricks Extra Chests
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
In your node definition table you have to insert this line:
See also:
Code: Select all
minetest.register_node("mod:name", {
-- other stuff here
light_source = [number from 0 (no light) to 14 (max light)],
})
- lua-api.txt
- torch in default mod (light max is defined at the beginning of the scritp; its value is 14)
Who is online
Users browsing this forum: No registered users and 22 guests