Schneiderism

[FTB Turtle] Gravel -> Flint Program

Nov 25th, 2015
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1.     local args = { ... }
  2.      
  3.     if #args >= 1 then
  4.       local slot = tonumber(args[1])
  5.      
  6.       if slot and slot >= 1 and slot <= 16 then
  7.         turtle.select(slot)
  8.       end
  9.     end
  10.      
  11.     while true do
  12.       if not turtle.place() then
  13.         break
  14.       end
  15.       if not turtle.dig() then
  16.         break
  17.       end
  18.     end
Add Comment
Please, Sign In to add comment