Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cell = peripheral.wrap('left')
- computer = peripheral.wrap('computer_0')
- monitor = peripheral.wrap('monitor_0')
- while true do
- if cell.getEnergyStored()/80000000 >= 0,8 then
- sleep(40)
- else
- monitor.print('Energy left: '..cell.getEnergyStored())
Add Comment
Please, Sign In to add comment