Advertisement
Guest User

startup

a guest
Nov 29th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. cell = peripheral.wrap('left')
  2. computer = peripheral.wrap('computer_0')
  3. monitor = peripheral.wrap('monitor_0')
  4. while true do
  5. if cell.getEnergyStored()/80000000 >= 0,8 then
  6. sleep(40)
  7. else
  8. monitor.print('Energy left: '..cell.getEnergyStored())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement