Got a question that the wiki doesn't answer? Ask on the forum (preferred), or join us on IRC.

BeastNode MC-Market.org

CraftBook/Light switches

From EngineHub.org Wiki
Jump to: navigation, search

Light switches toggle nearby torches between regular torches and redstone torches, in effect changing the amount of the light in the area. It is recommended that Redstone_pumpkins be used alternatively for your lighting needs. 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.
Light switch being used as a lock for a shop's double door.

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.

Configuration

Configuration Node and Path Default Value Effect
mechanics.light-switch.enable false Enables the Light Switch mechanic.
mechanics.light-switch.max-range 10 The maximum range that the mechanic searches for lights in.
mechanics.light-switch.max-lights 20 The maximum amount of lights that a Light Switch can toggle per usage.

Navigation menu