Hidden switches allow you to hide a redstone lever or button behind a wall. On right click of the associated block, the lever or button will toggle. This feature was added in version 2.0.
Hidden switches consist of three parts:
- A block to put the sign on.
- Either a sign post or a wall sign with [X] as the second line.
- A lever or button one block away from the sign in any right angle direction.
Right clicking a block next to the sign while not holding any item in your hand will toggle the switch(es) or button(s) adjacent to the sign.
In the configuration, it is possible to allow any face of the block to trigger the levers or buttons.
Since version 3.3 you can enter an item-id in the first line of a sign to require the player to hold the specified item to be able to use the hidden switch. If the user does not hold this item, he will read that his key did not fit. The key could also be limited to a specific name of an item adding |ITEM_NAME at the end of the key. If the item name should not matter, |$IGNORE could be added to the end of the key item line (see: http://wiki.sk89q.com/wiki/CraftBook/Item_Syntax).
Also since Version 3.3, usage of hidden switches could be restricted by entering a group name in the third line of the sign (case-sensitive). (Works at least with PermissionsEx here). Users not in the listed group get an error message.
|craftbook.mech.hiddenswitch||Allows creation of hidden switches.|
|craftbook.mech.hiddenswitch.use||Allows usage of hidden switches.|
|Configuration Node and Path||Default Value||Effect|
|mechanics.hidden-switch.enable||false||Enables the Hidden Switch mechanic.|
|mechanics.hidden-switch.any-side||true||Allows the Hidden Switch to be activated from any side of the block.|