daily pastebin goal
41%
SHARE
TWEET

reaktor

a guest Jan 29th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getInfo(cmd)
  2.   rednet.open("back")
  3.   rednet.send(28, cmd)
  4.   id, msg, prot = rednet.receive(2)
  5.   if id == 28 then
  6.     return msg
  7.   else
  8.     return "ERROR"
  9.   end
  10. end
  11. while true do
  12.   term.clear()
  13.   term.setCursorPos(1,1)
  14.   print("Reaktor Info")
  15.   print()
  16.   print("Staus: "..getInfo("ACT"))
  17.   print("Kern-Tmp: "..getInfo("FTMP").."C")
  18.   print("Huelle-Tmp: "..getInfo("CTMP").."C")
  19.   print("Energie: "..getInfo("EPLT").."RF")
  20.   print("Uran:  "..getInfo("FA").."/"..getInfo("MAXFA").."mB")
  21.   print("Abfall: "..getInfo("WA"))
  22.   --print("Kuehlung: "..getInfo("COOL"))
  23.   --print("Wasser: "..getInfo("COOLA").."/"..getInfo("MAXCOOL"))
  24.   print("Reaktion: "..getInfo("FREAC").."%")
  25.   print("Staebe: "..getInfo("RODS"))
  26.   print("Staebe Level: "..getInfo("RODL").."%")
  27.   sleep(5)
  28. --  term.clear()
  29. --  term.setCursorPos(1,1)
  30. --  print("Staebe Info")
  31. --  local count = 0
  32. --  local rods = getInfo("RODS")
  33. --  while count < rods do
  34. --    rednet.open("back")
  35. --    rednet.send(28, "RODL", count)
  36. --    id, value, prot = rednet.receive(2)
  37. --    if id ~= 28 then
  38. --      value = "ERROR"
  39. --    end
  40. --    print(count..": "..value.."%")
  41. --    rednet.close()
  42. --    count = count + 1
  43. --  end
  44. --  sleep(5)
  45. end
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top