If a custom fire_bg texture had been provided (not currently done
within the modpack itself), fire_fg would have been set to that instead
of the provided fire_fg or default.
if mesecons, put "off" rope lights in creative inv, and drop them as "off" as
well. else, put "on" in creative inv and drop "on"
allow right-click on rope lights only if no mesecons
also cache minetest.get_modpath("mesecons")
for backward compat, they'll resond to the usual strings, too:
"off" -> 0
"min" -> 3
"med" -> 7
"hi" -> 11
"max"/"on" -> 14
all dimmable nodes have been renamed to bear the light value in their
names, and aliased.
the non-dimmable lights still respond as before
("off" or n < 4; "on" or n > 3)
merge table and standing lamps into the new code
of all the relevant lights, the plasma ball is the only one that remains
on/off-only, since dimmable doesn't make sense there.
That one, and any future lights that get the on/off-only treatment, will
use the previous on/off behavior, i.e. turn off with the messages "off"
or "low" or a number < 4, and turn on with "med", "hi", "max", "on" or
a number > 3
This alters the behavior of table/standing lamps - they will no longer
cycle brightnesses by right-click. Like all other controllable lights,
they'll just toggle on/off. If there's enough demand for it, I'll add
that feature back in at a later date.
allow non-dimmables to respond to "off", "low", "med", "hi", "max", "on"
number messages for dimmables:
0 turns the light off
1-3 sets it to "low"
4-7 sets it to "med"
8-11 sets it to "hi"
12+ sets it to "max" (i.e. full-on)
non-dimmables:
a number > 3 or the strings "med", "hi", "max", or "on" turn the light on
a number < 4 or the strings "off" and "low" turn the light off
digiline stuff to be more generic, and add various digilines connections
rules to complement mesecons rules.
Mesecons must be present to get the "wallmounted" rules for digilines nodes.
Without mesecons, nodes that want wall rules will get alldir rules instead.
Add mesecons support to table and standing lamps (off -> max -> off).
Add digilines support to all other lights that now support mesecons,
except rope lights, since they're a mesecon conductor.
(will approach that last one later)