Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.close("left")
- rednet.open("left")
- function Execute()
- term.setTextColor(colors.lime)
- rs.setOutput("bottom", true)
- sleep(.5)
- rs.setOutput("bottom", false)
- repeat
- local sndrId, msg, dist, prot = rednet.receive("UPDATE")
- if msg == "BUILD" then
- print("Currently building Teh Wither...")
- elseif msg == "REDST" then
- print("Currently killing Teh Wither...")
- elseif msg == "END" then
- print("Killed Teh Wither...")
- print("---------------------------")
- end
- until msg == "END"
- end
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- clear()
- while true do
- term.setTextColor(colors.white)
- local input = read()
- if input == "kill" then
- clear()
- Execute()
- elseif tonumber(input) ~= nil then
- clear()
- for i = 0, tonumber(input) do
- print("Running for the #"..input.." time..")
- Execute()
- end
- else
- clear()
- print("Either specify an amount or type 'KILL'")
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement