Advertisement
xKevinn

Untitled

Oct 4th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. chat = peripheral.wrap("left")
  2. energy = peripheral.wrap("bottom")
  3. hasEnergy=true
  4. while true do
  5. sleep(1)
  6. stored = energy.getEnergyStored()
  7.  
  8. if hasEnergy==true then
  9. if stored=="0.0" then
  10. chat.tell("xKevinn","§cPower is unstable.")
  11. chat.tell("edman111","§cPower is unstable.")
  12. hasEnergy=false
  13. end
  14. end
  15.  
  16. if hasEnergy==false then
  17. if stored~="0.0" then
  18. chat.tell("xKevinn","§aPower is stable.")
  19. chat.tell("edman111","§aPower is stable.")
  20. hasEnergy=true
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement