keypad - ac-minetest/basic_machines GitHub Wiki

##Keypad

Keypad is basic way to activate other nodes ( machines ). It can also be used for writing on other nodes, playing sound or changing filter settings in mover/detector.


###crafting

keypad


###setup

Uses setup by punch or right click and enter coordinates/advanced settings.

Setup by punch:

Right after placing keypad punch it and follow instructions that appear in chat :

  1. punch keypad
  2. punch target

Setup by right click:

keypad setup

  • target : represents coordinates ( x, y, z ) relative to keypad. (0,0,0) is keypad itself, (0,1,0) is one node above, (0,-1,0) one node below. X coordinate axes goes from east to west, Y from down to up, Z from south to north.

  • Password: enter password and press OK. Password will be encrypted. Next time you use keypad you will need to enter correct password to gain access.

  • repeat: number to control how many times activation is repeated after initial punch

  • text: if set then text on target node will be changed. In case target is detector/mover, filter settings will be changed. Can be used for special operations.

  • 1=OFF/2=ON/3=TOGGLE control the way how target node is activated


###use

  1. Just punch ( left click ) keypad, then the target block will be activated.

  2. To set text on other nodes ( text shows when you look at node ) just target the node and set nonempty text. Upon activation text will be set. When target node is another keypad, its "text" field will be set. When targets is mover/detector, its "filter" field will be set. To clear "filter" set text to "@".

  3. keyboard : to use keypad as keyboard for text input write "@" in "text" field and set any password. Next time keypad is used it will work as text input device.

  4. displaying messages to nearby players ( up to 5 blocks around keypad's target ): set text to "!text". Upon activation player will see "text" in their chat.

  5. playing sound to nearby players : set text to "$sound_name"

  6. advanced text replacement : Suppose keypad A is set with text "@some @. text @!" and keypad B is set with text "insertion". Suppose we target A with B and activate B. Then text of keypad A will be set to "some insertion. text insertion!" insertion"