Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function moveFrame()
- rs.setOutput("top", true)
- sleep(1)
- rs.setOutput("top", false)
- end
- function mine()
- rs.setOutput("left", true)
- sleep(5.5)
- rs.setOutput("left", false)
- end
- local b = 1
- term.clear()
- print("Hom many times shoud I mine?")
- local Num = tonumber(read())
- for i=1, Num do
- b = b - 1
- if not (rs.getInput("bottom")) then
- if b == 0 then
- Num = Num + 1
- end
- Num = Num - 1
- moveFrame()
- mine()
- print("Interactions to go: ", Num - 1)
- else
- print("Not enough RF")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement