Game Development Reference
In-Depth Information
Inverters can also turn a daylight sensor into a night-light, as shown in Figure 9.20 . The
daylight sensor emits a signal according to the amount of light it's receiving. Feeding this
into an inverter turns the lamp on when the sensor is off, and vice versa.
FIGURE 9.20 Need a night-light? That's easy to arrange, and you can add further lamps
and noteblocks to create a full lighting system with an audible sound as night hits.
OR Gates, or Any Input Will Do
ORgatesprovideapositiveoutputifanyoftheinputsisalsotrue.Thisisanaturalfunction
of redstone wiring. Just connect two or more wires to a T-junction, and the single output
will always be on if any input is on, or off if all inputs are off. Figure 9.21 shows an OR
gate with three types of input, any of which can light the lamp.
Search WWH ::




Custom Search