Advertisement
karelvysinka

Turtle home create 1

Mar 23rd, 2023 (edited)
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | Gaming | 0 0
  1. os.loadAPI("turtle")
  2.  
  3. function gF(s)for i=1,s do turtle.forward()end end
  4. function gB(s)for i=1,s do turtle.back()end end
  5. function gU(s)for i=1,s do turtle.up()end end
  6. function gD(s)for i=1,s do turtle.down()end end
  7. function tL()turtle.turnLeft()end
  8. function tR()turtle.turnRight()end
  9. function pD()turtle.placeDown()end
  10. function sS(n)turtle.select(n)end
  11.  
  12. function bW(l)for i=1,l do pD()gF(1)end end
  13. function bR(l)for i=1,l do pD()gF(1)pD()gB(1)tR()gF(1)tL()end end
  14. function bH()
  15.   sS(1)pD()
  16.   bW(8)tR()
  17.   bW(8)tR()
  18.   bW(8)tR()
  19.   bW(8)
  20.   gU(1)tL()
  21.   gF(1)
  22.   tL()
  23.   bR(10)
  24.   gU(1)tR()
  25.   gF(9)
  26.   tR()gD(1)
  27. end
  28.  
  29. bH()
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement