Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. --Turbine1
  2. turbine1 = peripheral.wrap("back")
  3. function sendInfo()
  4. while true do
  5. active = turbine1.getActive() -- |Boolean | Returns true if the turbine is active (consuming hot fluid and generating power), false otherwise.
  6. energyStored = turbine1.getEnergyStored() -- |Integer | Returns the amount of energy stored in the Multiblock Turbine's internal energy buffer, in Redstone Flux (RF) units
  7. rotorSpeed = turbine1.getRotorSpeed() -- |Float | Returns the rotational velocity of the Multiblock Turbine's rotor, in Rotations Per Minute (RPMs)
  8. inputAmount = turbine1.getInputAmount() -- |Integer | Returns the amount of fluid contained in the Multiblock Turbine's hot-fluid intake tank, in milli-buckets (mB)
  9. inputType = turbine1.getInputType() -- |String or Nil| Returns the Fluid Dictionary name of the fluid contained in the Multiblock Turbine's hot-fluid intake tank, or Nil if the tank is empty
  10. outputAmount = turbine1.getOutputAmount() -- |Integer | Returns the amount of fluid contained in the Multiblock Turbine's effluent outlet tank, in milli-buckets (mB)
  11. outputType = turbine1.getOutputType() -- |String or Nil| Returns the Fluid Dictionary name of the fluid contained in the Multiblock Turbine's effluent outlet tank, or Nil if the tank is empty
  12. fluidAmountMax = turbine1.getFluidAmountMax() -- |Integer | Returns the maximum amount of fluid which the Turbine's fluid tanks may contain, in milli-buckets (mB)
  13. fluidFlowRate = turbine1.getFluidFlowRate() -- |Integer | Returns the amount of hot fluid which the turbine consumed in the last tick, in milli-buckets (mB)
  14. fluidFlowRateMax = turbine1.getFluidFlowRateMax() -- |Integer | Returns the user setting governing the maximum desired amount of fluid for the Multiblock turbine to consume per tick, in milli-buckets (mB)
  15. fluidFlowRateMaxMax = turbine1.getFluidFlowRateMaxMax() -- |Integer | Returns the maximum permissible user setting for the desired fluid flow rate, in milli-buckets (mB). Normally returns 2000 mB
  16. energyProducedLastTick = turbine1.getEnergyProducedLastTick() -- |Float | Returns the amount of energy the Multiblock turbine produced in the last tick, in Redstone Flux (RF) units
  17. --inductorEngaged = turbine1.getInductorEngaged() -- |Boolean | Returns true if the Multiblock Turbine's induction coils are engaged, false otherwise.
  18. term.clear()
  19. term.setCursorPos(1,1)print("Active:")term.setCursorPos(8,1)print(active)
  20. term.setCursorPos(1,2)print("EnergyStored:")term.setCursorPos(14,2)print(energyStored)
  21. term.setCursorPos(1,3)print("RotorSpeed:")term.setCursorPos(12,3)print(rotorSpeed)
  22. term.setCursorPos(1,4)print("InputAmount:")term.setCursorPos(13,4)print(inputAmount)
  23. term.setCursorPos(1,5)print("InputType:")term.setCursorPos(11,5)print(inputType)
  24. term.setCursorPos(1,6)print("OutputAmount:")term.setCursorPos(14,6)print(outputAmount)
  25. term.setCursorPos(1,7)print("OutputType:")term.setCursorPos(12,7)print(outputType)
  26. term.setCursorPos(1,8)print("MaxFluidAmount:")term.setCursorPos(16,8)print(fluidAmountMax)
  27. term.setCursorPos(1,9)print("FluidFlowRate:")term.setCursorPos(15,9)print(fluidFlowRate)
  28. term.setCursorPos(1,10)print("FluidMaxFlowRate:")term.setCursorPos(18,10)print(fluidFlowRateMax)
  29. term.setCursorPos(1,11)print("FluidMaxMaxFlowRate:")term.setCursorPos(21,11)print(fluidFlowRateMaxMax)
  30.  
  31. sleep(10)
  32. end
  33. end
  34. sendInfo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement