
Video: Easiest Way to Dig a Hole! | 3D TNT Quarry Perimeter + Tutorial | Minecraft AFK auto Flying Machine by Rays Works
How to build it
- Survey and prepare the perimeter area
Choose a relatively flat area with minimal rivers, oceans, or underground lava lakes. Find the highest terrain block in the area (knocking down tall trees first) and go 10 blocks above that Y-level; keep the TNT below Y=85 if you want to reach bedrock in a single pass.
- Build the two TNT duper segments
At the top-right corner of your planned perimeter, build the two parallel slime block segments that hold the TNT dupers, spaced 5 blocks apart (for example, at X+0 and X+5). Place one TNT block and one dead coral fan on the bottom of each segment, wait to add the rails and minecarts until the end, and attach the rear-facing observer and sticky piston engine above each duper.
- Place the master auto-off redstone block
Place a Block of Redstone against the main engine piston on the starting dock. This locks the flying machine in place while you finish building the shifting station and priming the dupers.
- Construct the main advancing station
Behind and beside the parked duper segments, build the L-shaped slime block pusher lines using normal pistons and observers. These segments sit behind the dock and are wired in a loop so that when the flying machine returns, it gets stopped, pushed one block sideways, and automatically relaunched.
- Add the glass delay bridge and BUD piston
Place a line of 4 glass blocks along the top of the advancing mechanism, with a Block of Redstone and a piston underneath pushing additional glass blocks into the front slime line. This connects the advancing segments in a complete loop that advances the duper modules first and the connecting slime bar second.
- Prime both TNT dupers with minecarts
On a temporary block beside each duper, place a Detector Rail with a Minecart on top. Power a temporary piston to push the rail and minecart simultaneously onto the slime block above the TNT and coral fan, then carefully remove the temporary blocks and power source without updating the TNT.
- Record coordinates for the return stations
Open the F3 debug screen and look at the two front-facing observers on the flying machine. Write down their exact X/Z lateral coordinates and their Y-level so you can align the return bumpers on the opposite end of the perimeter.
- Build the two self-advancing return stations
Fly across the perimeter (e.g., 17 chunks away) to the exact coordinates you recorded. Build two small return pods—aligned with the two duper segments—each consisting of a slime block, a forward sticky piston, a rear normal piston, an observer, and a Block of Redstone on top.
- Spawn-proof and weather-proof the stations
Cover the top of the return stations and main station with glass blocks or light sources like glowstone. This prevents lightning strikes or snowfall from causing block updates and stops hostile mobs from spawning on the machine while you are AFK.
- Board the minecart and launch the quarry
Sit inside one of the duper minecarts (or keep the entire track inside entity-processing chunks) so the minecarts never unload and clip through the machine. Break the auto-off Block of Redstone on the main dock to launch the quarry; place that redstone block back whenever you want to pause it on return.
How it works
Rather than building a full-width world eater, this 3D quarry moves along two axes using 82 total blocks split between a two-way flying machine and two compact return docks:
- Dual-Segment Two-Way Duper: To make the TNT duper work in both forward and reverse passes without a massive return station, the two TNT dupers are split onto two separate slime segments connected by a central engine bar. Each segment carries a
TNT, aDead Coral Fan, and aMinecarton aDetector Rail. Every time the segment shifts, the coral fan and minecart rail bud-prime and duplicate a lit TNT entity while keeping the original TNT block intact. - Far-End Return Stations: When the flying machine reaches the far side of the perimeter, its front observers hit two small bumper pods. The collision updates a sticky piston that stops the machine, shifts a slime block in front of the machine's return observer to reverse its direction, and pulses a piston that pushes the bumper pod itself one block over for the next pass.
- Main Advancing & Relaunch Station: When the flying machine returns to the home dock, a piston stops it in a central parked position. An observer detects the arrival and triggers a chain of pistons with a 4-glass-block push line. It pushes both TNT duper segments one block sideways first, and then pushes the connecting engine slime segment into place, which automatically updates the engine observer and launches the next pass.
Tips & variations
- Keep the Machine in Entity-Processing Chunks: Never let the flying machine enter lazy chunks or unload while moving, or the minecarts will freeze and fall out of the slime blocks, breaking the duper. Either ride inside one of the minecarts (do not press movement keys) or stand in the center of the perimeter with your render distance set at least 5 chunks higher than the perimeter radius (e.g., render distance 13+ for a 17x17 chunk perimeter).
- Avoid Phantoms While Riding: If you AFK inside the minecart, put a tamed cat in the second minecart to scare phantoms away, or attach a small solid-block roof above your head to block skylight.
- Clear Liquids as You Go: Water and lava completely shield blocks beneath them from TNT blasts. Clear surface water/lava before starting, and periodically bucket or sponge out exposed underground lava lakes between passes.
- Bedrock Y-Level Limit: TNT dropped from around Y=84 to Y=85 will blast all the way down into bedrock crevices in one run. If you lives in mountainous terrain and must build the machine at Y=90 or higher, run a second, lower machine afterward to finish the bottom layers.





