Guest User

startup

a guest
Jun 26th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.73 KB | None | 0 0
  1. --Author=An1m3wolf aka Anime02581
  2. --free to use
  3. while true do
  4.     sleep(0.2)
  5.     local   t1 = peripheral.wrap("BigReactors-Turbine_106")
  6.     local   t2 = peripheral.wrap("BigReactors-Turbine_107")
  7.  local   t3 = peripheral.wrap("BigReactors-Turbine_108")
  8.     local    m = peripheral.wrap("monitor_64")
  9.     local  p   = peripheral.wrap("draconic_rf_storage_7")
  10.     local  t1p = math.floor(t1.getEnergyProducedLastTick())
  11.     local  t2p = math.floor(t2.getEnergyProducedLastTick())
  12.  local  t3p = math.floor(t3.getEnergyProducedLastTick())
  13.     local t1p_ = math.floor(t1.getEnergyProducedLastTick())
  14.     local t2p_ = math.floor(t2.getEnergyProducedLastTick())
  15.  local t3p_ = math.floor(t3.getEnergyProducedLastTick())
  16.     local  tp  = math.floor(t1p + t2p + t3p)
  17.     local t1rpm= math.floor(t1.getRotorSpeed())
  18.     local t2rpm= math.floor(t2.getRotorSpeed())
  19.  local t3rpm= math.floor(t3.getRotorSpeed())
  20.     local  rfs = math.abs(p.getEnergyStored() / 1000000000000)
  21.     local  rfm = math.abs(p.getMaxEnergyStored() / 1000000000000)
  22.  local tex  = math.abs(42 / 2 - 4)
  23.  local trpm = math.floor(t1rpm + t2rpm + t3rpm)
  24.     m.clear()
  25.     m.setTextScale(1.5) --recommend monitor size 7x4 lxh
  26.     --==========Dont change or delete anything below here==============--
  27.         m.setCursorPos(tex,1)
  28.         m.setTextColor(colors.orange)    --can be changed
  29.         m.write("Draconic Core")
  30.         m.setCursorPos(6,2)
  31.         m.setTextColor(colors.red)       --can be changed
  32.         m.write("Energy Stored: ")
  33.         m.setTextColor(colors.lime)      --can be changed
  34.         m.write(rfs)
  35.         m.setCursorPos(2,3)
  36.         m.setTextColor(colors.red)       --can be changed
  37.         m.write("Max Energy Stored: ")
  38.         m.setTextColor(colors.lime)      --can be changed
  39.         m.write(rfm)
  40.        
  41.   m.setCursorPos(tex,5)
  42.         m.setTextColor(colors.orange)    --can be changed
  43.         m.write("Turbinen Info")
  44.         m.setCursorPos(2,6)
  45.         m.setTextColor(colors.blue)      --can be changed
  46.         m.write("Turbine 1: ")
  47.         m.setCursorPos(2,7)
  48.         m.setTextColor(colors.red)       --can be changed
  49.         m.write("Energy/t: ")
  50.         m.setTextColor(colors.lime)      --can be changed
  51.         m.write(t1p_)
  52.         m.setTextColor(colors.yellow)    --can be changed
  53.         m.write(" RF/t")
  54.         m.setTextColor(colors.red)       --can be changed
  55.         m.write(" @ ")
  56.         m.setTextColor(colors.lime)      --can be changed
  57.         m.write(t1rpm)
  58.         m.setTextColor(colors.yellow)    --can be changed
  59.         m.write(" RPM")
  60.        
  61.         m.setCursorPos(2,8)
  62.         m.setTextColor(colors.blue)      --can be changed
  63.         m.write("Turbine 2: ")
  64.         m.setCursorPos(2,9)
  65.         m.setTextColor(colors.red)      --can be changed
  66.         m.write("Energy/t: ")
  67.         m.setTextColor(colors.lime)     --can be changed
  68.         m.write(t2p_)
  69.         m.setTextColor(colors.yellow)   --can be changed
  70.         m.write(" RF/t")
  71.         m.setTextColor(colors.red)      --can be changed
  72.         m.write(" @ ")
  73.         m.setTextColor(colors.lime)     --can be changed
  74.         m.write(t2rpm)
  75.   --i am a free text, former known as keyword
  76.         m.setTextColor(colors.yellow)   --can be changed
  77.         m.write(" RPM")
  78.  
  79.   m.setCursorPos(2,10)
  80.   m.setTextColor(colors.blue)
  81.   m.write("Turbine 3: ")
  82.   m.setCursorPos(2,11)
  83.   m.setTextColor(colors.red)
  84.   m.write("Energy/t: ")
  85.   m.setTextColor(colors.lime)
  86.   m.write(t3p_)
  87.   m.setTextColor(colors.yellow)
  88.   m.write(" RF/t")
  89.   m.setTextColor(colors.red)
  90.   m.write(" @ ")
  91.   m.setTextColor(colors.lime)
  92.   m.write(t3rpm)
  93.   m.setTextColor(colors.yellow)
  94.   m.write(" RPM")
  95.        
  96.         m.setCursorPos(tex,15)
  97.         m.setTextColor(colors.orange)   --can be changed
  98.         m.write("Turbinen Gesamt")
  99.         m.setCursorPos(4,16)
  100.         m.setTextColor(colors.red)      --can be changed
  101.         m.write("Energy: ")
  102.         m.setTextColor(colors.lime)     --can be changed
  103.         m.write(tp)
  104.         m.setTextColor(colors.yellow)   --can be changed
  105.         m.write(" RF/t")
  106.   m.setTextColor(colors.red)
  107.   m.write(" @ ")
  108.   m.setTextColor(colors.lime)
  109.   m.write(trpm)
  110.   m.setTextColor(colors.yellow)
  111.   m.write(" RPM Global")
  112. end
Advertisement
Add Comment
Please, Sign In to add comment