Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- length = 8
- width = 8-1
- local function run()
- turtle.up()
- turtle.forward()
- for z=1,length do
- for x=1,width do
- turtle.forward()
- turtle.placeDown()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for x=1,width do
- turtle.forward()
- turtle.placeDown()
- end
- if z~=length then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- turtle.forward()
- turtle.turnRight()
- for x=1,15 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.down()
- redstone.setOutput("bottom",true)
- sleep(1)
- redstone.setOutput("bottom",false)
- end
- local min, sec = 0, 10
- while true do
- sleep(1)
- if sec == 0 then
- min = min -1
- sec = 60
- end
- sec = sec -1
- term.setCursorPos(1,1)
- term.clear()
- term.write(min .. ":"..sec)
- if min == 0 and sec == 0 then
- print("Timer done. Harvesting")
- run()
- min = 10
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement