Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Timer
- local starttimer = "1"
- local stoptimer = "2"
- local timerstatus = ""
- local spawner = 14
- rednet.open("left")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("1. For å åpne system for autocrafting")
- print("2. For å lukke system")
- print("Åpem/lukket: ")
- print(timerstatus)
- term.setCursorPos(1,5)
- write("Kjør program: ")
- pw = read()
- if timerstatus == 1 then
- rednet.broadcast("spawnwither")
- sleep(spawner)
- end
- if timerstatus == 0 then
- sleep(1)
- end
- if pw == starttimer then
- timerstatus = 1
- end
- if pw == stoptimer then
- timerstatus = 0
- end
- end
Add Comment
Please, Sign In to add comment