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

BeastNode MC-Market.org

CraftBook/Hidden switches

From EngineHub.org Wiki
Jump to: navigation, search

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.

Construction

Hidden switch 1.png

Hidden switches consist of three parts:

  1. A block to put the sign on.
  2. Either a sign post Wall sign icon.png or a wall sign Wall sign icon.png with [X] as the second line.
  3. 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.

The other side... ideally you wouldn't use a different block type.

Access restrictions

Keys

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).

Groups

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.

Permissions

Permission Node Effect
craftbook.mech.hiddenswitch Allows creation of hidden switches.
craftbook.mech.hiddenswitch.use Allows usage of hidden switches.

Configuration

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.

Navigation menu