Ezteyh

palcearmor

Jun 23rd, 2021
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. detector = peripheral.wrap("left")
  2.  
  3. while true do
  4. os.pullEvent("redstone")
  5.     if rs.getInput("back") then
  6.         turtle.select(1)
  7.         turtle.attack()
  8.         turtle.select(6)
  9.         turtle.digDown()
  10.             for i = 2, 5, 1 do
  11.                 turtle.select(i)
  12.                 turtle.dropDown()
  13.             end
  14.         turtle.select(6)
  15.         turtle.placeDown()
  16.         turtle.select(1)
  17.         turtle.forward()
  18.         turtle.dropDown()
  19.         turtle.back()
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment