Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local baterie = ""
- local reactor = peripheral.wrap("back")
- while true do
- baterie = reactor.getEnergyStored()
- print(baterie)
- if baterie < 1000 then
- reactor.setActive(true)
- end
- if baterie > 8000000 then
- reactor.setActive(false)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement