Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sleep(1)
- p = peripheral.wrap("right")
- while true do
- if p.getStackInSlot(1) then
- print("Item Detected, Mining...")
- shell.run("mine")
- else
- print("No item detected, sleeping...")
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement