Torches and light

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

Torches and light

by Dan Duncombe » Sat May 11, 2013 22:45

what is the maximum light level (number) it is possible to have emitted by something? It's just that I am making a mod, but a certain block does not emit light any brighter than a torch- even when I set it to a ridiculously high number- so, if possible, how can imake it brighter than a torch?
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

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

by PilzAdam » Sat May 11, 2013 22:47

The maximum light level is 15, althoug nodes can only emit 14.
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Sun May 12, 2013 11:41

Could I make it so that when my lamp turns on it spawns something like a radius 10 sphere around itself of invisible non colliding light emitting nodes that won't stop you placing blocks in their place and that won't spawn in place of water etc?
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Sun May 12, 2013 14:34

Thankyou, so I could change that so it is an ABM in the code and spawns my own special 'invisible light' block?
Hybrid Dog wrote:
Dan Duncombe wrote:Could I make it so that when my lamp turns on it spawns something like a radius 10 sphere around itself of invisible non colliding light emitting nodes that won't stop you placing blocks in their place and that won't spawn in place of water etc?
you can.
https://github.com/Uberi/MineTest-WorldEdit/blob/master/worldedit/primitives.lua#L28
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 21 guests

cron