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