Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p=peripheral.wrap("front")
- i=p.getFrequency()
- if i==4095 then i=1 end
- while i<=4095 do
- p.setFrequency(i)
- if p.getTankInfo()[1].contents.amount>0 then
- --os.pullEvent("key")
- print(i)
- while p.getTankInfo()[1].contents.amount>0 do
- sleep(1)
- end
- end
- i=1+i
- end
- p.setFrequency(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement