nomnuggetnom

MFSU Test

Aug 27th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local MFSU  = peripheral.wrap("top")
  2.  
  3. -------------
  4. while true do
  5. -------------
  6. energyStored = MFSU.getStored()
  7. maxEnergy = MFSU.getCapacity()
  8.  
  9. if energyStored < maxEnergy then
  10.     turtle.suck()
  11.     turtle.dropUp()
  12. else
  13.     sleep(1)
  14. end
  15.  
  16. ---
  17. end
  18. ---
Advertisement
Add Comment
Please, Sign In to add comment