Advertisement
Guest User

test

a guest
Jun 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. p=peripheral.wrap("front")
  2. i=p.getFrequency()
  3. if i==4095 then i=1 end
  4. while i<=4095 do
  5. p.setFrequency(i)
  6. if p.getTankInfo()[1].contents.amount>0 then
  7. --os.pullEvent("key")
  8. print(i)
  9. while p.getTankInfo()[1].contents.amount>0 do
  10. sleep(1)
  11. end
  12. end
  13. i=1+i
  14. end
  15. p.setFrequency(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement