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

OpenComputers EnergyOpenComputers EnergyEntity Position DataRFID UUID PayloadVideo Status OutputDoor Toggle CommandMechanical State ContrPitch, Yaw & Fire CommFormatted Log StringSiren TriggerPrinted PagePower ConverterPOWERCapacitorSTORAGEComputer Case (Tier 2)CONTROLScreen (Tier 2)OUTPUTSensorINPUTRFID ReaderINPUTDoor ControllerCONTROLSecurity DoorMACHINEEnergy TurretMACHINEOpenPrinterOUTPUTAlarmOUTPUTChestSTORAGE
InputMachinePowerStorageOutputControlItemEnergySignal

Materials

ItemCount
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 Disk1
Screen (Tier 2)1
Keyboard1
Power Converter1
Capacitor2
Cable24
RFID Reader1
RFID Card3
Card Writer1
Door Controller1
Security Door2
Energy Turret2
Alarm1
Sensor1
OpenPrinter1
Black Ink Cartridge1
Paper64
Chest1
Hopper1

Build it step by step

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

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

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

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

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

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

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

More OpenComputers designs

OpenComputers · Mid gameActuallyComputers Automated Empowerment & Laser Relay LineThis setup automates the entire Actually Additions crystal creation and empowerment process using OpenComputers and the ActuallyComputers addon. By combining component-driven Atomic Reconstructor pulses with a precision Transposer array, it eliminates item overflow and laser misfires. Build this line to reliably craft Empowered crystals and advanced blocks on demand without complicated redstone clock circuitry.Intermediate8 steps
OpenComputers · Early gameAutomated Tinkers' Smeltery & Alloying FoundryThis setup integrates an OpenComputers Tier 1 system directly with a Tinkers' Construct Smeltery to automate metal melting, fluid sorting, and ingot pouring. By utilizing OpenComputers Adapter drivers and a Redstone I/O block, it reads the internal molten fluids, prevents accidental alloying by holding conflict ores, and pulses the Seared Faucets automatically. It is an ideal early-game project to eliminate manual smeltery babysitting and accidental bronze or brass creation.Intermediate6 steps
OpenComputers · End gameAutonomous Robot Quarry & OC-Minecarts Logistics NetworkThis endgame OpenComputers build establishes a completely self-sustaining mining quarry using autonomous Robots and Drones paired with a long-distance rail network. Miners automatically excavate chunks, return to charge and offload ores, and trigger computer-driven Minecarts to haul the raw materials back to your main base. Building this setup eliminates manual mining and avoids long-distance chunkloaded pipe lag by utilizing smart, batched rail logistics.Advanced7 steps
OpenComputers · Late gameThaumic Computers Essentia Distillery & Infusion MatrixThis late-game setup integrates OpenComputers with Thaumcraft via the Thaumic Computers addon to completely automate essentia management and arcane infusion crafting. By monitoring Ward Jars in real-time and controlling Essentia Transfusers and Redstone Inlays, the system eliminates pipe clogging, maintains exact aspect stocks, and executes complex infusion recipes with zero user intervention.Advanced6 steps
OpenComputers · Late gameOC XNet Centralized Factory Control & Monitoring HubThis late-game control hub integrates an OpenComputers Server Rack with an XNet routing infrastructure to dynamically monitor and throttle factory logistics. By reading storage buffer levels and controlling XNet Redstone Proxy blocks via Bundled Redstone I/O, the system automatically diverts items, fluids, and energy only where needed. Building this prevents server lag from overflowing buffers and prevents power brownouts during heavy processing spikes.Advanced6 steps