OpenComputers · Mid game
OpenSecurity Biometric Bunker & Automated Defense System
This setup creates an automated, high-security airlock and defense perimeter using OpenComputers alongside the OpenSecurity, OC Sensors, and OpenPrinter addons. It scans approaching entities, grants hands-free entry to authorized RFID holders, prints physical visitor audit logs, and actively neutralizes unauthorized intruders with automated Energy Turrets. Building this system ensures your mid-game base remains completely secure against both wandering mobs and rival players while keeping a physical paper trail of all base activity.
- Footprint
- 7x5x4 blocks
- Power
- ~500 FE/t passive, spikes to several kFE/t when turrets fire (check JEI for local modpack config)
- Throughput
- 1 entity scan per second, instant turret tracking
- Difficulty
- intermediate
Flow diagram
How items, fluids and energy move through the setup, left to right.
Swipe sideways to see the whole diagram
Materials
| Item | Count |
|---|---|
| Computer Case (Tier 2) | 1 |
| Central Processing Unit (CPU) (Tier 2) | 1 |
| Memory (Tier 2.5) | 2 |
| Hard Disk Drive (Tier 2) | 1 |
| Graphics Card (Tier 2) | 1 |
| EEPROM (Lua BIOS) | 1 |
| OpenOS Floppy Disk | 1 |
| Screen (Tier 2) | 1 |
| Keyboard | 1 |
| Power Converter | 1 |
| Capacitor | 2 |
| Cable | 24 |
| RFID Reader | 1 |
| RFID Card | 3 |
| Card Writer | 1 |
| Door Controller | 1 |
| Security Door | 2 |
| Energy Turret | 2 |
| Alarm | 1 |
| Sensor | 1 |
| OpenPrinter | 1 |
| Black Ink Cartridge | 1 |
| Paper | 64 |
| Chest | 1 |
| Hopper | 1 |
Build it step by step
1Construct the Airlock Frame
Build a reinforced 3x3 hallway for your bunker entrance using blast-resistant blocks. Place two Security Doors at either end of the hallway to create an airlock chamber. Place the Door Controller directly adjacent to or underneath the outer Security Door so it can interface with the door block.
2Install Sensors and Scanners
Embed the RFID Reader into the outer wall next to the entrance at eye level. Mount the OC Sensors Sensor block directly above the outer doorway so it has a clear line of sight to the approach path. Attach the Alarm block to the ceiling inside the hallway.
3Mount the Energy Turrets
Place two Energy Turrets on pillars flanking the outer entrance. Ensure they have an unobstructed view of the approach zone. Connect your base's main Forge Energy or RF power grid directly to the turrets, as they require heavy external power to charge and fire their lasers.
4Set Up the Control Terminal
Inside the secure bunker area, place the Tier 2 Computer Case, Tier 2 Screen, and Keyboard. Connect the Power Converter and Capacitors to the Computer Case, and wire your base power into the Power Converter to keep the computer online during power fluctuations.
5Connect the OpenPrinter Archive
Place the OpenPrinter adjacent to the Computer Case. Load it with a stack of Paper and a Black Ink Cartridge. Place a Vanilla Hopper beneath the printer leading into a Chest to automatically store printed entry and threat logs.
6Run the OpenComputers Cabling
Run OpenComputers Cables from the Computer Case to the Sensor, RFID Reader, Door Controller, Alarm, Energy Turrets, and OpenPrinter. Ensure the cable network does not exceed component limits by sticking to a single Tier 2 or Tier 3 CPU setup. Keep the wiring concealed inside the bunker walls so intruders cannot sever the data links.
7Encode RFID Cards and Program the Loop
Temporarily connect the Card Writer to your computer to encode unique secret strings onto your RFID Cards and lock them. Install OpenOS onto the Hard Disk Drive, then write a Lua script that continuously polls the Sensor and RFID Reader. Configure the script to open the Security Door and print a timestamped pass log on a valid RFID match, or activate the Alarm and command the Energy Turrets to aim and fire at the entity's coordinates if no valid card is detected.
How it works
The system operates on an active polling loop executed by the Tier 2 Computer Case. Every second, the computer triggers the OC Sensors block to scan for nearby entities within a predetermined radius outside the bunker door. When an entity enters the detection zone, the computer simultaneously invokes the OpenSecurity RFID Reader to scan for an RFID Card in the entity's inventory. Because RFID Readers can scan through blocks at a short range, authorized players do not need to stop and click anything; walking up to the door automatically presents their credential.
If the RFID Reader returns a UUID and data payload matching the authorized whitelist table stored on the Hard Disk Drive, the computer interfaces with the Door Controller. It passes the set password to temporarily open the Security Door for three seconds before closing it again. At the same time, the computer formats a string containing the player's name, timestamp, and clearance status, sending it to the OpenPrinter. The printed page is immediately pulled into the chest below via the hopper, creating an unhackable physical audit trail of base traffic.
If the Sensor detects a player or hostile mob approaching the door, but the RFID Reader returns no card or an unauthorized string, the defense routine triggers. The computer activates the OpenSecurity Alarm to emit a loud warning siren and powers up the Energy Turrets. Using the relative X, Y, and Z coordinates provided by the Sensor block, the Lua script calculates the required pitch and yaw angles using basic trigonometry. It sends these angles to the turrets, waits for them to lock onto the target, and issues the fire command until the Sensor confirms the intruder is neutralized or has fled the radius.
Upgrades and scaling
- Replace the RFID Reader with an OpenSecurity Biometric Reader for simple click-based player UUID verification without needing to carry a card.
- Add an OpenSecurity Mag Card Reader and Keypad inside the bunker to require two-factor authentication for high-security inner vaults.
- Upgrade the Energy Turrets with Damage and Cooldown Upgrade cards (check JEI for recipes) to take down heavily armored intruders faster.
- Install an Internet Card in the Computer Case to send real-time webhook notifications to an external Discord server whenever the OpenPrinter logs an unauthorized intrusion attempt.
Common mistakes
- Forgetting to power the Energy Turrets directly with standard modpack energy (FE/RF); OpenComputers cables carry data and low-level OC network power, which is typically insufficient for firing turret lasers.
- Exceeding the component bus limit on the CPU by attaching too many peripheral blocks; if the computer fails to boot, upgrade to a Tier 3 CPU or add a Component Bus to the case.
- Placing the Sensor block behind solid walls where its line-of-sight or scan radius is obstructed, preventing accurate turret targeting calculations.
- Failing to lock the RFID Card in the Card Writer interface during setup, which allows rival players to easily overwrite or clone the card data if stolen.
FAQ
Why isn't the Door Controller opening my Security Door?
Ensure you are using the OpenSecurity Security Door (or Security Door Private) and that the Door Controller is touching the bottom half of the door. Also verify that the password string in your Lua script matches the one set on the door.
How do I calculate the turret pitch and yaw from the Sensor coordinates?
Subtract the turret's relative offset from the entity's X, Y, and Z offset returned by the sensor. Use math.atan2 in Lua to convert the horizontal and vertical distances into degree angles, then pass those values to the turret's moveTo function.
What happens when the OpenPrinter runs out of ink or paper?
The printer component call will return false, which can crash a basic script if unhandled. Always wrap your printer calls in a conditional check so the defense loop continues running even if the printer is empty.