Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function writeCentered(text)
- local x,y=term.getSize()
- local centerYPos=y/2
- local centerXStartingPos = (x-string.len(text)) /2
- term.setCursorPos( centerXStartingPos, centerYPos)
- print(text)
- end
- local monitor = peripheral.wrap("top")
- term.redirect(monitor)
- term.clear()
- while true do
- local stop = rs.getInput("back")
- if stop == false then
- rs.setOutput("right",true)
- writeCentered("Sending Lava")
- sleep(1)
- rs.setOutput("right",false)
- for i=1,360 do
- sleep(1)
- term.clear()
- writeCentered(360-i)
- end
- else
- writeCentered("Currently Deactivated")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement