Advertisement
Scarjit

OpenCC Uhr+ICBM

Dec 30th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. local bridge = peripheral.wrap("right")
  2. local net = peripheral.wrap("back")
  3.  
  4. bridge.clear()
  5. s = 300
  6. local width = 200
  7. while true do
  8. if s == 0 then do
  9.   ICBM = "ICBM started"
  10.   end
  11.   else
  12.   s = s-1
  13.   ICBM = tostring(s)
  14. end
  15. local storageUnits = {
  16.    {
  17.          ["id"] = "Timer",
  18.          ["name"] = "Uhrzeit : "..textutils.formatTime(os.time(), true)
  19.    },
  20.    {
  21.          ["id"] = "ICBM_Start",
  22.          ["name"] = "ICBM startet in :"..ICBM
  23.    }
  24. }
  25.  
  26. local offset = 0
  27. for key, storageUnit in pairs(storageUnits) do
  28.   pxOffset = offset * 20
  29.   bridge.clear()
  30.   storageUnit["label"] = bridge.addText(4, 4 + pxOffset, storageUnit["name"], 0x4000)
  31.   sleep(1)
  32.   offset = offset + 1
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement