Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "back"
- local time = 20
- local working = false
- while true do
- local leverinput = redstone.getInput("front")
- if leverinput == true then
- working = true
- else
- working = false
- end
- while working == true do
- local leverinput = redstone.getInput("front")
- if leverinput == false then
- working = false
- end
- term.clear()
- term.setCursorPos(1,1)
- print("on")
- redstone.setOutput(side, true)
- sleep(2)
- redstone.setOutput(side, false)
- sleep(time)
- redstone.setOutput(side, true)
- sleep(2)
- redstone.setOutput(side, false)
- sleep(time)
- end
- while working == false do
- local leverinput = redstone.getInput("front")
- if leverinput == true then
- working = true
- end
- term.clear()
- term.setCursorPos(1,1)
- print("wating!")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("wating")
- sleep(1)
- end
- end
Add Comment
Please, Sign In to add comment