Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chat = peripheral.wrap("left")
- energy = peripheral.wrap("bottom")
- hasEnergy=true
- while true do
- sleep(1)
- stored = energy.getEnergyStored()
- if hasEnergy==true then
- if stored=="0.0" then
- chat.tell("xKevinn","§cPower is unstable.")
- chat.tell("edman111","§cPower is unstable.")
- hasEnergy=false
- end
- end
- if hasEnergy==false then
- if stored~="0.0" then
- chat.tell("xKevinn","§aPower is stable.")
- chat.tell("edman111","§aPower is stable.")
- hasEnergy=true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement