Advertisement
Guest User

startup

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