chand1012

reactor optimal temperature

Aug 17th, 2020
2,340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. local reactor = peripheral.wrap("back")
  2.  
  3. while true do
  4.  local temp = reactor.getFuelTemperature()
  5.  if temp > 999 then
  6.   reactor.setActive(false)
  7.  else
  8.   reactor.setActive(true)
  9.  end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment