Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel()
- if (turtle.getFuelLevel()<20)
- then
- shell.run('refuel all')
- turtle.select(1)
- end
- end
- ---------------------------------------------------
- function scinanie()
- a=0
- while a>7
- do
- turtle.dig()
- turtle.digUP()
- a=a+1
- end
- while (a==0)
- do
- turtle.down()
- a=a-1
- end
- end
- ---------------------------------------------------
- local time = os.time()
- time = tonumber(time)
- --------------------------------------------------
- textutils.slowPrint("(b)-przerwanie pracy")
- while true do
- local sEvent,time = os.time()
- time = tonumber(time)
- local sEvent, param = os.pullEvent("key")
- if param == 48 then
- break
- end
- if (time>10 and time<11)
- then
- textutils.slowPrint("okolo 10")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment