Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Real Life Clock--
- x = 0
- local function getRealTime()
- local time = os.date("*t")
- return time
- end
- function Harvest()
- local sucess, data = turtle.inspect()
- if sucess == true then
- if data.name == "ae2:quartz_cluster" then
- turtle.dig()
- turtle.place()
- term.setCursorPos(1,2)
- textutils.slowPrint("Cluster Ready")
- end
- end
- end
- ---starts on the left---
- while true do
- if x == 0 then
- Harvest()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- x = x + 1
- end
- if x == 1 then
- Harvest()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- x = x - 1
- end
- if turtle.getItemCount(1) == 64 then
- turtle.dropUp()
- end
- local currentTime = getRealTime()
- if currentTime.hour == 04 and currentTime.min >= 50 then
- sleep(5000)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement