Advertisement
Guest User

show-energycore

a guest
Jun 17th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.04 KB | None | 0 0
  1. local storage = peripheral.find("draconic_rf_storage")
  2. local monitor = peripheral.wrap("bottom")
  3. term.redirect(monitor)
  4. local x=0
  5. local y=0
  6. while true do
  7.  
  8. monitor.clear()
  9.  
  10. --for key,value in pairs(storage) do
  11. --print("key: "..key..", value: "..value)
  12. --end
  13.  
  14. --for _,method in pairs(storage) do
  15. y=x
  16. x=storage.getEnergyStored()
  17. print(x..", "..((((x-y)/1000/1000)/3)*20).."MRF/t"..", "..(x*100/2140000000000).."%")
  18. --end
  19. --local stabilizer = core.getReactorInfo()
  20.  
  21. --for _, method in pairs(stabilizer) do
  22. --print(method)
  23. --end
  24. --print("              status: "..stabilizer.status)
  25. --print("      generationRate: "..stabilizer.generationRate.." RF/t")
  26. --print("         temperature: "..stabilizer.temperature)
  27. --print("       fieldStrength: "..stabilizer.fieldStrength)
  28. --print("    maxFieldStrength: "..stabilizer.maxFieldStrength)
  29. --print("      fieldDrainRate: "..stabilizer.fieldDrainRate)
  30. --print("Fuel Conversion Rate: "..stabilizer.fuelConversionRate.." nb/t")
  31. --print("   maxFuelConversion: "..stabilizer.maxFuelConversion)
  32. --local fuelConversionPercent=stabilizer.fuelConversion*100/stabilizer.maxFuelConversion
  33. --print("      fuelConversion: "..stabilizer.fuelConversion.."("..fuelConversionPercent.."%)")
  34. --local energySaturationPercent=stabilizer.energySaturation*100/stabilizer.maxEnergySaturation
  35. --print("    energySaturation: "..stabilizer.energySaturation.."("..energySaturationPercent.."%)")
  36. --print(" maxEnergySaturation: "..stabilizer.maxEnergySaturation)
  37. --local fieldStrengthPercent=stabilizer.fieldStrength*100/stabilizer.maxFieldStrength
  38. --print("      fieldStrength%: "..fieldStrengthPercent)
  39. --if (fieldStrengthPercent<51 or energySaturationPercent<51) then
  40. -- if it's < than some kill switch probably have it scram the reactor
  41. --  redstone.setOutput("back", not redstone.getOutput("back"))
  42. --  redstone.setOutput("top",false)
  43. --end
  44. --if (fieldStrengthPercent>51 and energySaturationPercent>51) then
  45. --  redstone.setOutput("back",false)
  46. --  redstone.setOutput("top",not redstone.getOutput("top"))
  47. --end
  48. sleep(2)
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement