Bunny_bt

Sensor(Display)

Apr 13th, 2022 (edited)
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. local monitor = peripheral.find('monitor')
  2. local modem = peripheral.find('modem')
  3. local seperator = '======================'
  4. term.redirect(monitor)
  5. monitor.setTextScale(0.5)
  6. modem.open(7201)
  7.  
  8. while true do
  9. --[[    TABLES
  10.     evt[5] = dataset[Reactor_Data, Reactor_State, Rod_Data]
  11.     Reactor_Data[RawName, Damagevalue, Name, Position, Slots, InventoryPercentFull, TotalSpace, ItemCount]
  12.     Reactor_State[:bool]
  13.     Rod_Data[Size, MaxStack, DamageValue, RawName, Name]
  14. ]]--
  15.     local evt = {os.pullEvent('modem_message')}
  16.     term.setCursorPos(1,1)
  17.     term.clear()
  18.  
  19.     print('Viewing ' .. evt[5].Reactor_Data.Name)
  20.     print('Running: ' .. tostring(evt[5].Reactor_State) .. '\n')
  21.     print(seperator)
  22.     textutils.slowPrint('Rod: ' .. evt[5].Rod_Data.Name)
  23.     textutils.slowPrint()('Rod Status: ' .. 100 - evt[5].Rod_Data.Damagevalue .. '%')
  24. end
Add Comment
Please, Sign In to add comment