Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. t = peripheral.wrap("top")
  2. frequency = 0
  3. function is_there_item(size)
  4. for i=1,size do
  5. if t.getStackInSlot(i) then
  6. return true
  7. end
  8. end
  9. end
  10.  
  11. while true do
  12. t.setFrequency(frequency)
  13. while is_there_item(27) do
  14. sleep(10)
  15. end
  16. frequency = frequency+1
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement