Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side =...
- local prap =peripheral.wrap(side)
- function main()
- if peripheral.getType(side) == "redstone_energy_cell" then
- print("Energy held is " ..prap.getEnergyStored().." MJs")
- print("Input is set at " ..prap.getEnergyReceive().." MJs/t")
- print("Input is at minimum " ..prap.getMinEnergyReceived().." MJs/t")
- print("Input is at maximum " ..prap.getMaxEnergyReceived().." MJs/t")
- print("Output is set at " ..prap.getEnergySend().." MJs/t")
- else
- print("No Redstone Energy Cell Detected")
- end
- end
- function MAIN()
- ntwk.clear()
- ntwk.setCursorPos("1","1")
- ntwk.write("Energy held is " ..prap.getEnergyStored().." MJs")
- ntwk.setCursorPos("1","2")
- ntwk.write("Input is set at "..prap.getEnergyReceive().." MJs/t")
- ntwk.setCursorPos("1","3")
- ntwk.write("Input is at minimum "..prap.getMinEnergyReceived().." MJs/t")
- ntwk.setCursorPos("1","4")
- ntwk.write("Input is at maximum "..prap.getMaxEnergyReceived().." MJs/t")
- ntwk.setCursorPos("1","5")
- ntwk.write("Output is set at "..prap.getEnergySend().." MJs/t")
- end
- local mntr=monitor_3
- local ntwk=peripheral.wrap(mntr)
- if peripheral.getType(mntr) == "monitor" then
- MAIN()
- else
- main()
- print(peripheral.getType(mntr))
- print(mntr)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement