Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
mode = arg[4] if mode == "r" then a = tonumber(arg[1]) b = tonumber(arg[2]) c = tonumber(arg[3]) end if mode == "l" then turtle.turnLeft() a = tonumber(arg[2]) b = tonumber(arg[1]) c = tonumber(arg[3]) end gc = 0 if b%2==0 then for ic = 1, c do gc = gc + 1 for ia = 1, a-1 do turtle.dig() turtle.forward() end turtle.turnRight() turtle.dig() turtle.forward() turtle.turnRight() for ib = 1, (b/2)-1 do for ia = 1, a-2 do turtle.dig() turtle.forward() end turtle.turnLeft() turtle.dig() turtle.forward() turtle.turnLeft() for ia = 1, a-2 do turtle.dig() turtle.forward() end turtle.turnRight() turtle.dig() turtle.forward() turtle.turnRight() end for ia = 1, a-1 do turtle.dig() turtle.forward() end turtle.turnRight() for ib = 1, b-1 do turtle.dig() turtle.forward() end turtle.turnRight() if gc ~= tonumber(c) then turtle.digDown() turtle.down() end end else for ic = 1, c do gc = gc + 1 for ib = 1, (b-1)/2 do for ia = 1, a-1 do turtle.dig() turtle.forward() end turtle.turnRight() turtle.dig() turtle.forward() turtle.turnRight() for ia = 1, a-1 do turtle.dig() turtle.forward() end turtle.turnLeft() turtle.dig() turtle.forward() turtle.turnLeft() end for ia = 1, a-1 do turtle.dig() turtle.forward() end turtle.turnRight() turtle.turnRight() if gc ~= tonumber(c) then turtle.digDown() turtle.down() end end end
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)