Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Turbine1
- turbine1 = peripheral.wrap("back")
- function sendInfo()
- while true do
- active = turbine1.getActive() -- |Boolean | Returns true if the turbine is active (consuming hot fluid and generating power), false otherwise.
- energyStored = turbine1.getEnergyStored() -- |Integer | Returns the amount of energy stored in the Multiblock Turbine's internal energy buffer, in Redstone Flux (RF) units
- rotorSpeed = turbine1.getRotorSpeed() -- |Float | Returns the rotational velocity of the Multiblock Turbine's rotor, in Rotations Per Minute (RPMs)
- inputAmount = turbine1.getInputAmount() -- |Integer | Returns the amount of fluid contained in the Multiblock Turbine's hot-fluid intake tank, in milli-buckets (mB)
- 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
- outputAmount = turbine1.getOutputAmount() -- |Integer | Returns the amount of fluid contained in the Multiblock Turbine's effluent outlet tank, in milli-buckets (mB)
- 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
- fluidAmountMax = turbine1.getFluidAmountMax() -- |Integer | Returns the maximum amount of fluid which the Turbine's fluid tanks may contain, in milli-buckets (mB)
- fluidFlowRate = turbine1.getFluidFlowRate() -- |Integer | Returns the amount of hot fluid which the turbine consumed in the last tick, in milli-buckets (mB)
- 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)
- fluidFlowRateMaxMax = turbine1.getFluidFlowRateMaxMax() -- |Integer | Returns the maximum permissible user setting for the desired fluid flow rate, in milli-buckets (mB). Normally returns 2000 mB
- energyProducedLastTick = turbine1.getEnergyProducedLastTick() -- |Float | Returns the amount of energy the Multiblock turbine produced in the last tick, in Redstone Flux (RF) units
- --inductorEngaged = turbine1.getInductorEngaged() -- |Boolean | Returns true if the Multiblock Turbine's induction coils are engaged, false otherwise.
- term.clear()
- term.setCursorPos(1,1)print("Active:")term.setCursorPos(8,1)print(active)
- term.setCursorPos(1,2)print("EnergyStored:")term.setCursorPos(14,2)print(energyStored)
- term.setCursorPos(1,3)print("RotorSpeed:")term.setCursorPos(12,3)print(rotorSpeed)
- term.setCursorPos(1,4)print("InputAmount:")term.setCursorPos(13,4)print(inputAmount)
- term.setCursorPos(1,5)print("InputType:")term.setCursorPos(11,5)print(inputType)
- term.setCursorPos(1,6)print("OutputAmount:")term.setCursorPos(14,6)print(outputAmount)
- term.setCursorPos(1,7)print("OutputType:")term.setCursorPos(12,7)print(outputType)
- term.setCursorPos(1,8)print("MaxFluidAmount:")term.setCursorPos(16,8)print(fluidAmountMax)
- term.setCursorPos(1,9)print("FluidFlowRate:")term.setCursorPos(15,9)print(fluidFlowRate)
- term.setCursorPos(1,10)print("FluidMaxFlowRate:")term.setCursorPos(18,10)print(fluidFlowRateMax)
- term.setCursorPos(1,11)print("FluidMaxMaxFlowRate:")term.setCursorPos(21,11)print(fluidFlowRateMaxMax)
- sleep(10)
- end
- end
- sendInfo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement