Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- while true do
- if not turtle.detect() then
- if turtle.getItemCount() >= 1 or turtle.suckUp() then
- turtle.place()
- peripheral.wrap("front").turnOn()
- count = 0
- end
- end
- count = count + 1
- sleep(1)
- if count >= 120 then
- os.shutdown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement