ToCy01

elore.lua

Jun 12th, 2022 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. function megfordul()
  2.     turtle.turnLeft()
  3.     turtle.turnLeft()
  4. end
  5.  
  6. tavolsag = 1
  7. k = 0
  8. while(1) do
  9.     x, y = turtle.inspect()
  10.     if(y.name ~= "minecraft:piston") then
  11.         turtle.dig()
  12.         turtle.suck()
  13.         turtle.forward()
  14.         x, y = turtle.inspect()
  15.         if(y.name == "minecraft:piston") then
  16.             megfordul()
  17.             turtle.place()
  18.         else
  19.             megfordul()
  20.             turtle.place()
  21.             megfordul()
  22.         end
  23.     else
  24.         megfordul()
  25.    end
  26. end
Add Comment
Please, Sign In to add comment