Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("top")
- maxHeat = 8500
- eu = p.getEUOutput()
- rednet.open("back")
- safeHeat = maxHeat * .48
- rs.setOutput("top", true)
- term.clear()
- function checkHeat()
- if heat > safeHeat then
- rs.setOutput("top", false)
- else
- rs.setOutput("top", true)
- end
- end
- function displayHeat()
- heat = p.getHeat()
- print(heat.."/"..maxHeat)
- os.sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- end
- function sendInfo()
- rednet.send(108,heat,eu)
- end
- while true do
- displayHeat()
- checkHeat()
- sendInfo()
- os.sleep(.8)
- end
Advertisement
Add Comment
Please, Sign In to add comment