Advertisement
Guest User

startup.lua

a guest
Apr 6th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. p = peripheral.wrap("left")
  2.  
  3. while true do
  4.     if turtle.detect() then
  5.         p.speak("cyka blyat !")
  6.         if turtle.detectUp() == false then
  7.             turtle.up()
  8.             if turtle.detect() then
  9.                 turtle.down()
  10.                 turtle.turnRight()
  11.             end
  12.         end
  13.     end
  14.    
  15.     if turtle.detectDown() == false then
  16.         if turtle.detect() == false then
  17.         turtle.down()
  18.         end
  19.     end
  20.     turtle.forward()
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement