9.1. Electricity: Advanced Circuits & Automation
Electricity in Rust opens up a world of advanced automation and base defense. Moving beyond simple lights, you can create complex circuits for automated defenses, farming systems, and even complex traps. This section delves into advanced electrical components and circuit des.
Key Electrical Components:
- Power Source: Wind Turbines, Solar Panels, Generators. These provide the initial power.
- Combiners: Used to combine power from multiple sources.
- Splitters: Used to divide power into multiple outputs.
- Branch: Allows you to split power with a specific percentage going to one output and the rest to another.
- Switches: Manual on/off controls for various devices.
- Timers: Activate or deactivate devices at set intervals. Essential for traps and automated systems.
- Logic Gates (AND, OR, NOT, XOR): The building blocks of complex automation. They process electrical sals based on specific conditions.
- Memory Cells: Store a state (on/off) until reset.
- Hoppers: Used in farming and automated crafting systems to move items.
- Auto-Turrets: Automated defenses that require power and ammunition.
Advanced Circuit Concepts:
1. Automated Defense Systems:
- Basic Turret Setup: Connect a Power Source to a Splitter. Connect one output to an Auto-Turret and the other to a Switch. This allows you to manually turn the turret on/off.
- Timed Turrets: Use a Timer connected to the turret's power. Set the timer to activate the turret only during specific periods, conserving power and ammo.
- Multiple Turrets with AND Gate: Connect two Power Sources to an AND gate. Connect the AND gate's output to your turrets. This ensures turrets only fire when both power sources are active (e.g., two solar panels receiving sunlight).
2. Automated Farming:
- Automated Watering: Connect a Water Pump to a power source and a series of sprinklers. Use Timers to activate the sprinklers at set intervals, ensuring your crops are always watered.
- Automated Harvesting (Advanced): This is complex and often involves Hoppers, Timers, and potentially custom logic to collect mature crops.
3. Trap Automation:
- Flame Turret Traps: Connect Flame Turrets to Timers and Power Sources. Set them to activate when players approach specific areas, creating deadly kill zones.
- Pressure Plates: While not directly electrical, pressure plates can be wired to activate electrical components like Timers or Switches, triggering traps when stepped on.
4. Logic Gate Examples:
- AND Gate: Requires both inputs to be 'true' (powered) for the output to be 'true'. Useful for requiring multiple conditions to be met.
- OR Gate: If either input is 'true', the output is 'true'. Useful for activating a device from multiple switches.
- NOT Gate: Inverts the input. If input is 'true', output is 'false', and vice-versa.
Building Your Circuit:
Use the electrical branch tool to connect components. Red connections indicate power flow. Experiment with different combinations of components to achieve your desired automation. Always test your circuits thoroughly before relying on them for defense or critical functions.