Wiki 9Minecraft TIS-3D Mod Wiki
TIS-3D Mod Wiki › Guides › How to Build a Keypad and Terminal Interface

How to Build a Keypad and Terminal Interface

Assemble the Input Side

Insert a Keypad Module into a Controller or Casing. The Keypad Module lets a player press keys to send values into your program. Pair it with a Terminal Module if you also want typed input and on-screen output. Both modules must sit in the same Controller or Casing structure as the Execution Module that reads them.

Read Input in Code

In your Execution Module program, read from the Keypad Module port. Each key press delivers a value your code can branch on. Use the Code Bible or the TIS-3D Reference Manual to confirm the instruction that reads a port and the instruction that compares values.

Show Results

Write output to a Terminal Module to display text, or to a Display Module to render it in the world. A typical loop reads a key from the Keypad Module, checks it against an expected value, and writes a response to the Terminal Module.

Lock It Down

Use a Key or Skeleton Key with the Controller to restrict who can open the interface. Keep the Keypad Module as the only input path so players interact through your program rather than the raw interface. Add a Redstone Module if a correct key press should also trigger a redstone output elsewhere.