Advertisement
XxZajoZzO

Startup program fom mining turtle

Jun 18th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. sleep(1)
  2. p = peripheral.wrap("right")
  3. while true do
  4.    if p.getStackInSlot(1) then
  5.       print("Item Detected in chest! Mining!")
  6.       shell.run("mine")
  7.    else
  8.       print("No item Detected! Waiting!")
  9.       sleep(5)
  10.    end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement