Entityreborn

Untitled

Jan 19th, 2022 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. t = peripheral.wrap("back")
  2. cooldown = false
  3.  
  4. while (true)
  5. do
  6.     os.queueEvent("fakeEvent");
  7.     os.pullEvent();
  8.     if (t.getCoolantFilledPercentage() < 0.1 and cooldown = false)
  9.     then
  10.         t.scram()
  11.     end
  12.  
  13.     if (t.getCoolantFilledPercentage() > 0.9 and cooldown = true)
  14.         t.activate()
  15.     end
  16. end
Add Comment
Please, Sign In to add comment