wasliebob

Bee

Jul 23rd, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1.  
  2.  
  3. term.clear()
  4. m = peripheral.wrap("left")
  5. a = 0
  6. b = 0
  7. if m.isBee() then
  8. bee = m.analyze()
  9.  
  10. for i,j in pairs(bee) do
  11. a = a+1
  12.  
  13. if a ~= 14 then
  14. print(tostring(i) .. " ; " .. tostring(j))
  15. end
  16.  
  17. if a == 14 then
  18. try = j
  19. write(tostring(i) .. " : ")
  20.  
  21. for e , r in pairs (try) do
  22. b = b+1
  23.  
  24. if b ~= 3 then
  25. write(tostring(r) .. "X")
  26. end
  27.  
  28. if b == 3 then
  29. print(tostring(r))
  30. end
  31. end
  32. end
  33. end
  34. else
  35. print("There is no bee in the analyzer!")
  36. end
Advertisement
Add Comment
Please, Sign In to add comment