Light Switch

Light switches toggle nearby torches between regular torches and redstone torches, in effect changing the amount of the light in the area. Additionally, nearby lights in other rooms will also toggle with usage of this feature.

Construction

Light switches consist of two parts:

  • A wall sign Wall sign icon.png with [I] or [|] as the second line.
  • Either a redstone torch or a regular torch above the sign.
  • A custom range for searching on the third line (optional)
  • A custom maximum light changes per click on fourth line (optional)

The maximum range and light changes that can be entered on the sign are changeable in the configuration.

Right clicking the sign will toggle the lights in the general area.

Uses

What the light switch can do:

  • Light up an area.
  • Power redstone circuits.
  • Act as a door lock. (thanks Baummann1703!)
  • Some other clever use that will blow all of our minds.

Configuration

Node Comment Default
mechanics.LightSwitch.max-range The maximum range that the mechanic searches for lights in. 10
mechanics.LightSwitch.max-lights The maximum amount of lights that a Light Switch can toggle per usage. 20

Permissions

Permission Node Effect
craftbook.mech.light-switch Allows for creation of light switches.
craftbook.mech.light-switch.use Allows the light switch mechanic to be used.