devnull01010101

Untitled

Aug 6th, 2022
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. r = peripheral.wrap("back")
  2.  
  3. while true do
  4. curr_waste = r.getWaste()
  5.   if curr_waste > 0 then
  6.      r.scram()
  7.      print("Reactor Scramed")
  8.   else
  9.      print("No waste in reactor")
  10.   end
  11.   os.sleep(5)
  12.  
  13. end
Add Comment
Please, Sign In to add comment