scrap mechanic farming: Automated Defense Setup Guide - Farming

scrap mechanic farming: Automated Defense Setup Guide

Learn how to build an automated piston-based defense system for your scrap mechanic farming plots to crush incoming bot raids automatically.

2026-07-16
scrap mechanic Wiki Team
Quick Guide
  • Automated Protection: Secure your scrap mechanic farming plots with an automated squasher system that triggers on bot contact.
  • Logic Control: Use a NOR-NOR-OR logic loop combined with a timer to automate piston extension and retraction.
  • Sensor Triggers: Set up sport suspension bumpers that push into sensor range when bots attempt to breach your perimeter.
  • Piston Advantage: Utilize Level 2 pistons instead of controllers to eliminate bottom-pause delays and crush fast-moving targets.

scrap mechanic farming: Automated Defense Setup Guide

Establishing a highly productive crop field is essential for survival progression, but managing the subsequent daily raids can quickly become overwhelming. This guide outlines how to construct an automated defense grid, allowing you to focus on exploration while your crops defend themselves. By utilizing physical triggers, advanced sensor placement, and a compact logic circuit, you can build a self-resetting trap that instantly squashes raiding bots the moment they touch your perimeter.

Video Highlights:

  • Building a compact, four-block-high perimeter wall around the crop plots.
  • Installing sport suspension triggers that activate internal sensors on impact.
  • Wiring a self-resetting NOR-NOR-OR logic loop with a precise one-second timer.
  • Upgrading to Level 2 pistons for high-speed crushing action against Haybots.

Farming in Survival Mode triggers unauthorized farming detections based on the quantity and quality of the crops planted. When your total crop value exceeds a specific threshold, a raid is scheduled for the upcoming midnight. Managing these raids manually wastes precious spinmetal, ammo, and time. An automated system solves this by turning the bots' pathfinding behavior against them, converting their aggressive advances into the physical force that triggers their own demise.

Crop TypeValue PointsRaid Tier Contribution
Carrots1Low
Redbeats1Low
Tomatoes1Low
Bananas2Medium
Oranges2Medium
Blueberries2Medium
Broccoli3High
Pineapples3High
Raid Trigger Warning

Raid calculations occur daily at 00:00 (midnight). If your total crop value points equal 10 or more, a raid warning will appear. Ensure your automated defenses are fully powered and functional before this countdown timer hits zero.

Essential Materials for Automatic Defense

To construct a reliable, self-operating farm defense system, you must gather specific mechanical, structural, and logical components. The durability of your outer walls determines how long the system can withstand attacks if power is lost, while the speed of your pistons determines how effectively you can crush higher-tier enemies like Haybots.

ComponentRecommended LevelQuantityPrimary Purpose
Logic GateLevel 13Processes the sensor signals and controls the piston loop
TimerLevel 11Controls the duration of the piston extension
SensorLevel 14Detects when a bot compresses the outer bumper
PistonLevel 24Drives the heavy crushing plates down at high speed
Sport SuspensionLevel 14Acts as a spring-loaded physical trigger button
Heavy BlockLevel 3 (Concrete/Stone)VariableForms the protective wall and heavy squashing plates
Push ButtonLevel 11Serves as a manual system override and reset switch

Sensors

  • Range Settings: Set to exactly 2 blocks.
  • Placement: Mounted inside the main wall looking outward.
  • Function: Detects the compressed bumper plate.

Sport Suspension

  • Tension: Default settings work perfectly.
  • Placement: Mounted on the exterior of the wall.
  • Function: Compresses when bots walk into it, triggering the sensor.

Pistons

  • Upgrade Priority: High. Level 2 is highly recommended.
  • Speed: Maximize speed settings to catch fast bots.
  • Function: Rapidly deploys the crushing plate on trigger.
Piston Upgrade Tip

Upgrading your pistons to Level 2 is the most cost-effective upgrade for this build. Level 2 pistons extend up to 7 blocks and deliver much faster travel speeds than Level 1 variants, preventing agile Haybots from slipping underneath the crushing plate unharmed.

Step-by-Step Logic Gate Configuration

The core of this automated defense is a self-resetting latch circuit. Standard buttons or continuous sensors either retract too quickly or hold the piston down too long. By wiring a NOR-NOR-OR logic loop, the system registers an impact, deploys the crushing plates instantly, holds them down for a designated timeframe via a timer, and then automatically retracts them to prepare for the next target.

1

Build the Outer Wall & Trigger Pads

Construct a solid wall four blocks high around your entire farming plot using high-durability blocks like stone or concrete. On each side of the wall, place one sport suspension unit one block above the ground. Attach a durable block to the end of each suspension to act as a physical bumper pad.

2

Install and Configure Sensors

Mount four sensors inside the main wall, directly behind each suspension bumper pad, looking outward. Configure each sensor's detection range to 2. Test the physical mechanism by walking into the bumper pad; the suspension should compress, pushing the pad into the sensor's field of view and triggering a positive detection signal.

3

Wire the Logic Loop

Place three logic gates and one timer nearby. Set the first two logic gates to NOR and the third logic gate to OR. Connect the two NOR gates to each other to create a stable latch. Connect the output of both NOR gates to the inputs of the OR gate. Connect all four sensors to the primary active NOR gate.

4

Integrate the Timer and Pistons

Connect the output of the OR gate to the input of the Timer. Connect the output of the Timer back to the input of the secondary NOR gate to act as the reset trigger. Set the Timer duration to exactly 1.00 second. Finally, connect the output of the primary OR gate to all four pistons, ensuring the pistons are configured to maximum speed and an extension length of 7 blocks.

Input SourceTarget ComponentLogic Gate TypeExpected Behavior
Sensors (1-4)NOR Gate ANORSends trigger signal upon bumper compression
NOR Gate AOR GateORConsolidates signals to trigger the pistons
OR GateTimerN/AInitiates the 1-second delay sequence
TimerNOR Gate BNORResets the latch, retracting the pistons
Manual ButtonNOR Gate BNORAllows manual override and system reset
Timer Optimization

Setting the timer to 1.00 second provides the optimal balance between crushing duration and reset speed. If the timer is set too short, the crushing plate may retract before dealing lethal damage. If it is set too long, other incoming bots might walk over the lowered plate and enter your farm.

Optimizing Your Automated Farm Against High-Tier Bots

While basic Totebots are easily crushed by almost any mechanical setup, larger enemies like Haybots present unique challenges due to their height and high attack damage. A common mistake is attempting to drive the crushing plates using a Controller instead of a Piston-timer loop. Understanding the mechanical differences between these two systems is crucial for maintaining an impenetrable farm perimeter.

When using a Controller to drive a crushing mechanism, the rotation or translation sequence suffers from a built-in pause at the end of its cycle. Even a fully upgraded Level 5 Controller exhibits a brief delay when reaching its maximum extension before it begins to retract. During this pause, agile bots can climb onto the top of the crushing plate, using it as a stepping stone to leap directly over your defensive walls and land in your crop fields.

FeaturePiston + Timer LoopController Loop
Response SpeedInstantaneousDelayed start
Bottom PauseNone (instant retraction)0.5 to 1.0 second delay
Resource CostLow (Level 2 Pistons)High (Requires Level 5 Controller)
Bot Pathing BypassImpossibleBots can climb during the pause
Wiring ComplexityModerateSimple
LethalityExtremely HighModerate

Pre-Raid System Checklist:

  • Verify all four sensors are set to range 2 and detect bumper compression.
  • Ensure the logic loop is active and the timer is set to exactly 1.00 second.
  • Confirm all pistons are upgraded to at least Level 2 and set to maximum speed.
  • Check that the heavy crushing plates are positioned directly above the bumper zones.
  • Perform a physical test by walking into each bumper to confirm instant deployment.
Controller Vulnerability

Do not use controllers for fast-acting crushers. The unavoidable pause at the bottom of a controller's cycle allows Haybots to damage the mechanical joints or climb over your defenses, rendering your automated system ineffective during large-scale raids.

Farming Defense FAQs

Q: Why do all four sides of my farm defense trigger when only one side is attacked?

This design links all four sensors to a single centralized logic loop that fires all pistons simultaneously. This unified design is highly resource-efficient, requiring only three logic gates and one timer to protect the entire perimeter, rather than replicating the circuit four times.

Q: Can I use wooden blocks for the crushing plates to save on resources?

While wood is cheap, it has low durability. High-tier bots like Haybots can quickly destroy wooden plates if they survive the initial strike. It is highly recommended to use stone, metal, or Level 3 Concrete for both the walls and the crushing plates to ensure long-term durability.

Q: My pistons are extending but they are not crushing the bots. What is wrong?

Ensure your pistons are upgraded to at least Level 2 and their speed slider is maximized. If the piston extends too slowly, bots will simply push against the wall without taking crushing damage. Additionally, verify that the gap between the lowered crushing plate and the ground is small enough to compress the bot's hitbox.

Q: How do I reset the system if a logic gate gets stuck in an active loop?

Connect a standard push button to the input of your reset NOR gate (Gate B). Pressing this button will manually send a reset signal through the loop, clearing any stuck states and instantly retracting all pistons.

System Maintenance

Regularly inspect your bumper pads after large raids. While the automated logic loop handles the combat, physical blocks can still take minor chip damage from explosive bot deaths or accidental hammer swings during crop harvesting.